Class ExceptionConverter.Server
- java.lang.Object
-
- com.atlassian.confluence.rest.api.model.ExceptionConverter.Server
-
- Enclosing class:
- ExceptionConverter
public static class ExceptionConverter.Server extends Object
Converts Confluence REST API modelServiceException
s intoRestError
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 Constructor Description Server()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RestError
convertServiceException(Exception e)
Converts aServiceException
into a correspondingRestError
with the correct status.
-
-
-
Method Detail
-
convertServiceException
public static RestError convertServiceException(Exception e)
Converts aServiceException
into a correspondingRestError
with the correct status.- Throws:
RuntimeException
- if the exception cannot be converted
-
-