Class RuntimeExceptionMapper

java.lang.Object
org.sdase.commons.server.jackson.errors.RuntimeExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<RuntimeException>

public class RuntimeExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<RuntimeException>
Exception Mapper for RuntimeException that should be used as last resort to avoid default error messages.
  • Constructor Details

    • RuntimeExceptionMapper

      public RuntimeExceptionMapper()
  • Method Details

    • toResponse

      public jakarta.ws.rs.core.Response toResponse(RuntimeException e)
      Specified by:
      toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<RuntimeException>