Class WebEngineExceptionMapper

java.lang.Object
org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<Throwable>
Direct Known Subclasses:
ScimV2ExceptionMapper

@Singleton @Provider public class WebEngineExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<Throwable>
Author:
Bogdan Stefanescu
  • Field Details

    • headers

      @Context protected jakarta.ws.rs.core.HttpHeaders headers
    • webContext

      @Context protected WebContext webContext
  • Constructor Details

    • WebEngineExceptionMapper

      public WebEngineExceptionMapper()
  • Method Details

    • toResponse

      public jakarta.ws.rs.core.Response toResponse(Throwable cause)
      Specified by:
      toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<Throwable>
    • getStatusCode

      protected static int getStatusCode(Throwable t)
    • handleErrorOnWebModule

      protected Object handleErrorOnWebModule(Throwable t)