Annotation Interface UnwrapException


@Retention(RUNTIME) @Target(TYPE) public @interface UnwrapException
Used to configure that an exception (or exceptions) should be unwrapped during exception handling.

Unwrapping means that when an Exception of the configured type is thrown and no jakarta.ws.rs.ext.ExceptionMapper exists, then RESTEasy Reactive will attempt to locate an ExceptionMapper for the cause of the Exception.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends Exception>[]
    If this is not set, the value is assumed to be the exception class where the annotation is placed
  • Element Details

    • value

      Class<? extends Exception>[] value
      If this is not set, the value is assumed to be the exception class where the annotation is placed
      Default:
      {}