public enum DefaultExceptionResolver extends java.lang.Enum<DefaultExceptionResolver> implements ExceptionResolver
ExceptionResolver
interface that attempts to re-throw the same exception
that was thrown by the server. This always returns a Throwable
.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
resolveException(com.fasterxml.jackson.databind.node.ObjectNode response)
Resolves the exception from the given json-rpc
response
ObjectNode . |
static DefaultExceptionResolver |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DefaultExceptionResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultExceptionResolver INSTANCE
public static DefaultExceptionResolver[] values()
for (DefaultExceptionResolver c : DefaultExceptionResolver.values()) System.out.println(c);
public static DefaultExceptionResolver 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 java.lang.Throwable resolveException(com.fasterxml.jackson.databind.node.ObjectNode response)
ObjectNode
.resolveException
in interface ExceptionResolver
response
- the response