com.atlassian.confluence.plugins.restapi.exceptions
Class RestExceptionMapper
java.lang.Object
com.atlassian.confluence.plugins.restapi.exceptions.RestExceptionMapper
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<Exception>
@Provider
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestExceptionMapper
public RestExceptionMapper()
toResponse
public javax.ws.rs.core.Response toResponse(Exception exception)
- Specified by:
toResponse
in interface javax.ws.rs.ext.ExceptionMapper<Exception>
Copyright © 2003–2015 Atlassian. All rights reserved.