public static class ExceptionConverter.Server extends Object
ServiceException
s into RestError
entities,
the standardised error response format produced by our REST resources.
See com.atlassian.confluence.rest.client.model.ExceptionConverter.Client
for the reverse conversion.
Constructor and Description |
---|
Server() |
Modifier and Type | Method and Description |
---|---|
static RestError |
convertServiceException(Exception e)
Converts a
ServiceException into a corresponding RestError with the correct status. |
public static RestError convertServiceException(Exception e)
ServiceException
into a corresponding RestError
with the correct status.RuntimeException
- if the exception cannot be convertedCopyright © 2003–2018 Atlassian. All rights reserved.