Class ExceptionConverter.Server
java.lang.Object
com.atlassian.confluence.rest.v2.api.model.ExceptionConverter.Server
- Enclosing class:
ExceptionConverter
Converts Confluence REST API model
ServiceExceptions 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 RestErrorConverts aServiceExceptioninto a correspondingRestErrorwith the correct status.
-
Constructor Details
-
Server
public Server()
-
-
Method Details
-
convertServiceException
Converts aServiceExceptioninto a correspondingRestErrorwith the correct status.- Throws:
RuntimeException- if the exception cannot be converted
-