- Type Parameters:
A
- the resource type
- All Superinterfaces:
Route<A>
An error route.
This is used to define route based on the error specified in an input. For instance, in order to resolve an handler for an error exchange with a NotFoundException
error, an error route must
be defined with NotFoundException
error type targeting a handler able to handle NotFoundException
.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
ErrorRoute.Extractor<A,
B extends ErrorRoute<A>, C extends ErrorRoute.Extractor<A, B, C>> An error route extractor.static interface
ErrorRoute.Manager<A,
B, C extends ErrorRoute<A>, D extends ErrorRoute.Manager<A, B, C, D, E>, E extends Router<A, B, C, D, E>> An error route manager. -
Method Summary
Modifier and TypeMethodDescriptionReturns an error type.
-
Method Details
-
getErrorType
Returns an error type.
- Returns:
- an error type or null
-