HttpStatusCodeException class abstract
An abstract base class for custom exceptions representing HTTP status code errors.
This class extends Exception and serves as a foundation for creating specific exceptions related to HTTP status codes. It includes a human-readable message describing the error and an associated HTTP statusCode.
- Implemented types
- Implementers
- BadGatewayException
- BadRequestException
- ConflictException
- ForbiddenException
- GatewayTimeoutException
- GoneException
- InternalServerErrorException
- MethodNotAllowedException
- NotAcceptableException
- NotFoundException
- NotImplementedException
- ServiceUnavailableException
- TooManyRequestsException
- UnauthorizedException
- UnprocessableEntityException
- UnsupportedMediaTypeException
Constructors
- HttpStatusCodeException(String message, int statusCode)
-
Creates an instance of HttpStatusCodeException with the specified
message
and HTTPstatusCode
.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A human-readable description of the exception.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
The HTTP status code associated with the exception.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited