Class ContentExceptionMapper

java.lang.Object
ch.tocco.nice2.rest.documents.impl.resources.ContentExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<ContentException>

public class ContentExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<ContentException>
This exception mapper is registered on the ContentException. The exception is mapped onto a 400 BAD REQUEST response.
  • Constructor Details

    • ContentExceptionMapper

      public ContentExceptionMapper()
  • Method Details

    • toResponse

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