Class ClosingExceptionMapper<E extends Exception>

java.lang.Object
com.xebialabs.deployit.ClosingExceptionMapper<E>
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<E>
Direct Known Subclasses:
DeployitExceptionMapper, UnhandledExceptionMapper

public abstract class ClosingExceptionMapper<E extends Exception> extends Object implements jakarta.ws.rs.ext.ExceptionMapper<E>
  • Field Details

    • X_EXCEPTION_TYPE

      public static final String X_EXCEPTION_TYPE
      See Also:
    • X_PATH

      public static final String X_PATH
      See Also:
    • hideInternals

      protected final boolean hideInternals
    • logger

      protected final org.slf4j.Logger logger
  • Constructor Details

    • ClosingExceptionMapper

      protected ClosingExceptionMapper(boolean hideInternals)
  • Method Details

    • registerCleanup

      public static void registerCleanup(Runnable action)
    • toResponse

      public final jakarta.ws.rs.core.Response toResponse(E exception)
      Specified by:
      toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<E extends Exception>
    • handleException

      protected abstract jakarta.ws.rs.core.Response handleException(E exception)
    • checkWhetherWeHideInternals

      protected jakarta.ws.rs.core.Response checkWhetherWeHideInternals(int status, RuntimeException e, String content)