public enum ExceptionsStrategy extends java.lang.Enum<ExceptionsStrategy> implements ExceptionStrategy
Enum Constant and Description |
---|
CONTINUE_EXECUTION
When an exception occur, do nothing with it, continue to read or write the current object.
|
FORWARD_EXCEPTION
When an exception occur, this strategy throw a new
OdinAdapterException with the given layer information. |
LOG_EXCEPTION
When an exception occur, this strategy log the exception with the path between the object using this strategy and the field where the exception occur.
|
Modifier and Type | Method and Description |
---|---|
static ExceptionsStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExceptionsStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
processException
public static final ExceptionsStrategy CONTINUE_EXECUTION
public static final ExceptionsStrategy LOG_EXCEPTION
public static final ExceptionsStrategy FORWARD_EXCEPTION
When an exception occur, this strategy throw a new OdinAdapterException
with the given layer information.
When the OdinAdapterException
is printed to the console or other destination, it will also display the path between the current object and the field where the exception occur.
public static ExceptionsStrategy[] values()
for (ExceptionsStrategy c : ExceptionsStrategy.values()) System.out.println(c);
public static ExceptionsStrategy 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 null