Class RestExceptionMapper
java.lang.Object
com.atlassian.confluence.plugins.restapi.exceptions.RestExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Exception>
public class RestExceptionMapper
extends Object
implements 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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal javax.ws.rs.core.Response
toResponse
(Exception exception)
-
Constructor Details
-
RestExceptionMapper
public RestExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<Exception>
-