Class ExceptionConverter.Server
java.lang.Object
com.atlassian.confluence.rest.v2.api.model.ExceptionConverter.Server
- Enclosing class:
- ExceptionConverter
Converts Confluence REST API model
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RestError
Converts aServiceException
into a correspondingRestError
with the correct status.
-
Constructor Details
-
Server
public Server()
-
-
Method Details
-
convertServiceException
Converts aServiceException
into a correspondingRestError
with the correct status.- Throws:
RuntimeException
- if the exception cannot be converted
-