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 modelServiceExceptions intoRestErrorentities, the standardised error response format produced by our REST resources.See
com.atlassian.confluence.rest.client.model.ExceptionConverter.Clientfor the reverse conversion. 
- 
- 
Constructor Summary
Constructors Constructor Description Server() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RestErrorconvertServiceException(Exception e)Converts aServiceExceptioninto a correspondingRestErrorwith the correct status. 
 - 
 
- 
- 
Method Detail
- 
convertServiceException
public static RestError convertServiceException(Exception e)
Converts aServiceExceptioninto a correspondingRestErrorwith the correct status.- Throws:
 RuntimeException- if the exception cannot be converted
 
 - 
 
 -