Enum Class ExceptionUnwrapStrategy
- All Implemented Interfaces:
Serializable,Comparable<ExceptionUnwrapStrategy>,Constable
Defines the strategy for unwrapping exceptions during exception handling.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways unwraps exception of this type before checking mappers.Unwraps exception only if the thrown exception type itself has no exact mapper registered.Unwraps exceptions only if neither the thrown exception nor any of its supertypes have a registered mapper. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExceptionUnwrapStrategyReturns the enum constant of this class with the specified name.static ExceptionUnwrapStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Always unwraps exception of this type before checking mappers. Only falls back to checking mappers for the wrapper exception if no mapper is found for any unwrapped cause. -
UNWRAP_IF_NO_EXACT_MATCH
Unwraps exception only if the thrown exception type itself has no exact mapper registered. Checks for an exact match first, then unwraps if none is found. -
UNWRAP_IF_NO_MATCH
Unwraps exceptions only if neither the thrown exception nor any of its supertypes have a registered mapper. Checks the entire type hierarchy before unwrapping.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-