Interface ErrorRouteInfo<T,R>
- Type Parameters:
T- The targetR- The result
- All Superinterfaces:
AnnotationMetadataProvider, AnnotationSource, MethodBasedRouteInfo<T,R>, RequestMatcher, RouteInfo<R>
- All Known Implementing Classes:
DefaultErrorRouteInfo
Represents a
Route that matches an exception.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface AnnotationSource
EMPTYFields inherited from interface RouteInfo
DEFAULT_PRODUCES -
Method Summary
Modifier and TypeMethodDescriptionMatch the given exception.Match the given exception.@Nullable Class<?> Methods inherited from interface AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface MethodBasedRouteInfo
getArgumentNames, getTargetMethod, resolveArgumentBindersMethods inherited from interface RequestMatcher
matchingMethods inherited from interface RouteInfo
consumesAll, doesConsume, doesProduce, doesProduce, explicitlyConsumes, explicitlyProduces, findStatus, getBodyArgument, getBodyType, getConsumes, getDeclaringType, getExecutor, getFullRequestBodyType, getMessageBodyReader, getMessageBodyWriter, getProduces, getRequestBodyType, getResponseBodyType, getReturnType, isAsync, isAsyncOrReactive, isCompletable, isErrorRoute, isImperative, isPermitsRequestBody, isReactive, isResponseBodyJsonFormattable, isSingleResult, isSpecifiedSingle, isSuspended, isVoid, isWebSocketRoute, needsRequestBody, producesAll
-
Method Details
-
originatingType
@Nullable Class<?> originatingType()- Returns:
- The type the exception originates from. Null if the error route is global.
-
exceptionType
-
match
Match the given exception.- Parameters:
exception- The exception to match- Returns:
- The route match
-
match
Match the given exception.- Parameters:
originatingClass- The class where the error originates fromexception- The exception to match- Returns:
- The route match
-