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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
toResponse
(ContentException exception)
-
Constructor Details
-
ContentExceptionMapper
public ContentExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<ContentException>
-