@Provider public class RestExceptionMapper extends ServiceExceptionMapper
ServiceException
s into Response
s containing RestError
s.
The conversion will be done automatically for any REST Resource that throws a ServiceException.
Constructor and Description |
---|
RestExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
_annotateThisClassWithProvider()
This method exists to remind developers that they need to annotate the implementing class with
jersey's javax.ws.rs.ext.Provider annotation.
|
toResponse
protected void _annotateThisClassWithProvider()
ServiceExceptionMapper
_annotateThisClassWithProvider
in class ServiceExceptionMapper
Copyright © 2003–2021 Atlassian. All rights reserved.