public enum AnnotationsErrorResolver extends java.lang.Enum<AnnotationsErrorResolver> implements ErrorResolver
ErrorResolver
that uses annotations.ErrorResolver.JsonError
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
ErrorResolver.JsonError |
resolveError(java.lang.Throwable thrownException,
java.lang.reflect.Method method,
java.util.List<com.fasterxml.jackson.databind.JsonNode> arguments)
Resolves the error using the
Throwable that
was thrown by the given Method when passed
the given arguments . |
static AnnotationsErrorResolver |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AnnotationsErrorResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnnotationsErrorResolver INSTANCE
public static AnnotationsErrorResolver[] values()
for (AnnotationsErrorResolver c : AnnotationsErrorResolver.values()) System.out.println(c);
public static AnnotationsErrorResolver valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic ErrorResolver.JsonError resolveError(java.lang.Throwable thrownException, java.lang.reflect.Method method, java.util.List<com.fasterxml.jackson.databind.JsonNode> arguments)
Throwable
that
was thrown by the given Method
when passed
the given arguments
. If the error can not
be resolved then null is returned.resolveError
in interface ErrorResolver
thrownException
- the Throwable
method
- the Method
that threw the Throwable
arguments
- the arguments
that were passed to the Method
ErrorResolver.JsonError
or null if it couldn't be resolved