Class ServiceExceptionMapper
java.lang.Object
com.atlassian.confluence.rest.v2.api.exception.ServiceExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Exception>
@Deprecated
public abstract class ServiceExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<Exception>
Deprecated.
since 9.4 obsolete, no replacement
Converts
ServiceException
s into Response
s containing RestError
s.
The conversion will be done automatically for any REST Resource that throws a ServiceException.
To get the benefit of this mapping in your plugin, currently you need to implement this class in the package with your rest resources and annotate the implementing class with javax.ws.rs.ext.Provider- Since:
- 9.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
Deprecated.This method exists to remind developers that they need to annotate the implementing class with jersey's javax.ws.rs.ext.Provider annotation.final javax.ws.rs.core.Response
toResponse
(Exception exception) Deprecated.
-
Constructor Details
-
ServiceExceptionMapper
public ServiceExceptionMapper()Deprecated.
-
-
Method Details
-
toResponse
Deprecated.- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<Exception>
-
_annotateThisClassWithProvider
protected abstract void _annotateThisClassWithProvider()Deprecated.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.
-