com.atlassian.confluence.rest.api.model
Class ExceptionConverter.Server

java.lang.Object
  extended by com.atlassian.confluence.rest.api.model.ExceptionConverter.Server
Enclosing class:
ExceptionConverter

public static class ExceptionConverter.Server
extends Object


Constructor Summary
ExceptionConverter.Server()
           
 
Method Summary
static RestError convertServiceException(Exception e)
          Converts a ServiceException into a corresponding RestError with the correct status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionConverter.Server

public ExceptionConverter.Server()
Method Detail

convertServiceException

public static RestError convertServiceException(Exception e)
Converts a ServiceException into a corresponding RestError with the correct status.

Throws:
RuntimeException - if the exception cannot be converted


Copyright © 2003–2015 Atlassian. All rights reserved.