de.smartics.exceptions.core
Enum ThrowableHandleMode

Package class diagram package ThrowableHandleMode
java.lang.Object
  extended by java.lang.Enum<ThrowableHandleMode>
      extended by de.smartics.exceptions.core.ThrowableHandleMode
All Implemented Interfaces:
Serializable, Comparable< ThrowableHandleMode>

public enum ThrowableHandleMode
     
     
extends Enum< ThrowableHandleMode>

Defines the modes how exceptions should be handled by the framework.


Enum Constant Summary
NORMAL
          Throwables will not be truncated and are therefore stored in the cause property.
TRUNCATE_ALL
          On request all exceptions will be removed.
TRUNCATE_EXTERNAL
          On request all exceptions do not inherit from AbstractCoreException or AbstractCoreRuntimeException are removed.
 
Method Summary
static ThrowableHandleMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ThrowableHandleMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NORMAL

public static final ThrowableHandleMode NORMAL
Throwables will not be truncated and are therefore stored in the cause property.


TRUNCATE_EXTERNAL

public static final ThrowableHandleMode TRUNCATE_EXTERNAL
On request all exceptions do not inherit from AbstractCoreException or AbstractCoreRuntimeException are removed. Effectively the first none-framework exception will be cut off with all of its root causes.


TRUNCATE_ALL

public static final ThrowableHandleMode TRUNCATE_ALL
On request all exceptions will be removed. If requested afterwards the root cause of the exception is null.

Method Detail

values

public static ThrowableHandleMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ThrowableHandleMode c : ThrowableHandleMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ThrowableHandleMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2007-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.