Enum Class ExceptionUnwrapStrategy

java.lang.Object
java.lang.Enum<ExceptionUnwrapStrategy>
org.jboss.resteasy.reactive.server.ExceptionUnwrapStrategy
All Implemented Interfaces:
Serializable, Comparable<ExceptionUnwrapStrategy>, Constable

public enum ExceptionUnwrapStrategy extends Enum<ExceptionUnwrapStrategy>
Defines the strategy for unwrapping exceptions during exception handling.
  • Enum Constant Details

    • ALWAYS

      public static final ExceptionUnwrapStrategy 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

      public static final ExceptionUnwrapStrategy 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

      public static final ExceptionUnwrapStrategy 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

      public static ExceptionUnwrapStrategy[] 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

      public static ExceptionUnwrapStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null