ErrorResponse class
- Inheritance
-
- Object
- ApiResponse
- ErrorResponse
Constructors
-
ErrorResponse({ResponseStatus status = ResponseStatus.internalServerError, required String message, Map<
String, String> ? errors}) -
const
-
ErrorResponse.badRequest({String message = "Bad request", Map<
String, String> ? errors}) -
factory
- ErrorResponse.forbidden({String message = "Forbidden"})
-
factory
- ErrorResponse.internalServerError({String message = "Internal server error"})
-
factory
- ErrorResponse.notFound({String message = "Not found"})
-
factory
-
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited