Package io.micronaut.web.router
Interface ErrorRoute
- All Superinterfaces:
Route
Represents a
Route that matches an exception.- Since:
- 1.0
-
Field Summary
Fields inherited from interface io.micronaut.web.router.Route
DEFAULT_PRODUCES -
Method Summary
Modifier and TypeMethodDescriptionconsumes(io.micronaut.http.MediaType... mediaType) Applies the given accepted media type the route.Defines routes nested within this route.@Nullable Class<?>produces(io.micronaut.http.MediaType... mediaType) Applies the given accepted media type the route.Match thisRouteonly if the given predicate is true.Methods inherited from interface io.micronaut.web.router.Route
body, body, consumesAll, getConsumes, getProduces
-
Method Details
-
toRouteInfo
ErrorRouteInfo<Object,Object> toRouteInfo()- Specified by:
toRouteInfoin interfaceRoute
-
originatingType
- Returns:
- The type the exception originates from. Null if the error route is global.
-
exceptionType
- Returns:
- The type of exception
-
consumes
Description copied from interface:RouteApplies the given accepted media type the route. -
nest
Description copied from interface:RouteDefines routes nested within this route. -
where
Description copied from interface:RouteMatch thisRouteonly if the given predicate is true. -
produces
Description copied from interface:RouteApplies the given accepted media type the route.
-