Class RestExceptionMapper
java.lang.Object
com.atlassian.confluence.rest.v2.api.exception.ServiceExceptionMapper
com.atlassian.confluence.plugins.restapi.exceptions.RestExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<Exception>
Ensures
ServiceException
s thrown by REST resources are converted into appropriate RestError
s before
returning the Response
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method exists to remind developers that they must annotate the implementing class withProvider
.Methods inherited from class com.atlassian.confluence.rest.v2.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 must annotate the implementing class withProvider
. The implementing class must also be placed in a package scanned by Atlassian-REST for REST modules.- Specified by:
_annotateThisClassWithProvider
in classServiceExceptionMapper
-