Class BaseExceptionMapper<T extends Throwable>

java.lang.Object
com.liferay.portal.vulcan.jaxrs.exception.mapper.BaseExceptionMapper<T>
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<T>

public abstract class BaseExceptionMapper<T extends Throwable> extends Object implements jakarta.ws.rs.ext.ExceptionMapper<T>
  • Field Details

    • httpHeaders

      @Context protected jakarta.ws.rs.core.HttpHeaders httpHeaders
  • Constructor Details

    • BaseExceptionMapper

      public BaseExceptionMapper()
  • Method Details

    • toResponse

      public jakarta.ws.rs.core.Response toResponse(T exception)
      Specified by:
      toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<T extends Throwable>
    • getMediaType

      protected jakarta.ws.rs.core.MediaType getMediaType()
    • getProblem

      protected abstract Problem getProblem(T exception)