exception library

Library that exposes the API for the exceptions

Classes

CatchError
Annotation to mark a method that is handling the errors.
DartnessCatchError
A wrapper class in order to retrieve the error handler instance from the annotation ErrorHandler and the data required to handle it internally by the Dartness framework.
DartnessCatchErrorRegister
Interface that is used to handle the errors.
DartnessErrorHandler
A wrapper class in order to retrieve the error handler instance from the annotation ErrorHandler and the data required to handle it internally by the Dartness framework.
ErrorHandler
An annotation that indicate that a class is an error handler.

Exceptions / Errors

BadGatewayException
A custom exception representing a "Bad Gateway" error (HTTP 502).
BadRequestException
A custom exception representing a "Bad Request" error (HTTP 400).
ConflictException
A custom exception representing a "Conflict" error (HTTP 409).
ForbiddenException
A custom exception representing a "Forbidden" error (HTTP 403).
GatewayTimeoutException
A custom exception representing a "Gateway Timeout" error (HTTP 504).
GoneException
A custom exception representing a "Gone" error (HTTP 410).
HttpStatusCodeException
An abstract base class for custom exceptions representing HTTP status code errors.
InternalServerErrorException
A custom exception representing an internal server error (HTTP 500).
MethodNotAllowedException
A custom exception representing a "Method Not Allowed" error (HTTP 405).
NotAcceptableException
A custom exception representing a "Not Acceptable" error (HTTP 406).
NotFoundException
A custom exception representing a "Not Found" error.
NotImplementedException
A custom exception representing a "Not Implemented" error (HTTP 501).
ServiceUnavailableException
A custom exception representing a "Service Unavailable" error (HTTP 503).
TooManyRequestsException
A custom exception representing a "Too Many Requests" error (HTTP 429).
UnauthorizedException
A custom exception representing an "Unauthorized" error (HTTP 401).
UnprocessableEntityException
A custom exception representing an "Unprocessable Entity" error (HTTP 422).
UnsupportedMediaTypeException
A custom exception representing an "Unprocessable Entity" error (HTTP 422).