Class RestExceptionMapper
java.lang.Object
com.atlassian.confluence.rest.api.exception.ServiceExceptionMapper
com.atlassian.confluence.plugins.graphql.exceptions.RestExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Exception>
Converts
ServiceException
s into Response
s containing RestError
s.
The conversion will be done automatically for any REST Resource that throws a ServiceException.
- Since:
- 6.12.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method exists to remind developers that they need to annotate the implementing class with jersey's javax.ws.rs.ext.Provider annotation.Methods inherited from class com.atlassian.confluence.rest.api.exception.ServiceExceptionMapper
toResponse
-
Constructor Details
-
RestExceptionMapper
public RestExceptionMapper()
-
-
Method Details
-
_annotateThisClassWithProvider
protected void _annotateThisClassWithProvider()Description copied from class:ServiceExceptionMapper
This method exists to remind developers that they need to annotate the implementing class with jersey's javax.ws.rs.ext.Provider annotation. The implementing class will also need to be placed in the package that is scanned by the atlassian-rest for rest modules.- Specified by:
_annotateThisClassWithProvider
in classServiceExceptionMapper
-