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
ServiceExceptions thrown by REST resources are converted into appropriate RestErrors before
returning the Response.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis 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:ServiceExceptionMapperThis 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:
_annotateThisClassWithProviderin classServiceExceptionMapper
-