Class UnwrappedExceptionBuildItem

java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.resteasy.reactive.server.spi.UnwrappedExceptionBuildItem

public final class UnwrappedExceptionBuildItem extends io.quarkus.builder.item.MultiBuildItem
When an Exception of this 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.

The unwrapping behavior is controlled by the ExceptionUnwrapStrategy.

  • Constructor Details

    • UnwrappedExceptionBuildItem

      public UnwrappedExceptionBuildItem(String throwableClassName)
    • UnwrappedExceptionBuildItem

      public UnwrappedExceptionBuildItem(String throwableClassName, org.jboss.resteasy.reactive.server.ExceptionUnwrapStrategy strategy)
    • UnwrappedExceptionBuildItem

      public UnwrappedExceptionBuildItem(Class<? extends Throwable> throwableClassName)
    • UnwrappedExceptionBuildItem

      public UnwrappedExceptionBuildItem(Class<? extends Throwable> throwableClassName, org.jboss.resteasy.reactive.server.ExceptionUnwrapStrategy strategy)
  • Method Details

    • getThrowableClass

      @Deprecated(forRemoval=true) public Class<? extends Throwable> getThrowableClass()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getThrowableClassName

      public String getThrowableClassName()
    • getStrategy

      public org.jboss.resteasy.reactive.server.ExceptionUnwrapStrategy getStrategy()