Class BaseExceptionMapper<T extends Throwable>

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

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

    • httpHeaders

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

    • BaseExceptionMapper

      public BaseExceptionMapper()
  • Method Details

    • toResponse

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

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

      protected abstract Problem getProblem(T exception)