HttpException class
A bas class for specific HTTP exception classes. Map data can be provided to add additional information as the response body.
- Implemented types
- Implementers
- BadRequestException
- ConflictException
- ForbiddenException
- GoneException
- MethodNotAllowed
- NotAcceptableException
- NotFoundException
- NotImplementedException
- PaymentRequiredException
- PreconditionFailedException
- ServiceUnavailableException
- TooManyRequestsException
- UnauthorizedException
- UnsupportedMediaTypeException
Constructors
-
HttpException([int status = HttpStatus.INTERNAL_SERVER_ERROR, String message = 'Internal Server Error', Map<
String, dynamic> ? data]) -
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited