com.atlassian.confluence.api.service.exceptions
Class ServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.atlassian.confluence.api.service.exceptions.ServiceException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadRequestException, ConflictException, InternalServerException, NotFoundException, NotImplementedServiceException, PermissionException

@ExperimentalApi
public class ServiceException
extends RuntimeException

All thrown API Service-level exceptions should extend this exception. Every ServiceException subclass should have a clean mapping to HTTP response statuses and messages. Services may throw this exception to wrap general unexpected exceptions. Concrete instances of this exception map to a http 500 error.

See Also:
Serialized Form

Constructor Summary
ServiceException()
           
ServiceException(String message)
           
ServiceException(String message, Throwable cause)
           
ServiceException(Throwable throwable)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceException

public ServiceException()

ServiceException

public ServiceException(String message)

ServiceException

public ServiceException(Throwable throwable)

ServiceException

public ServiceException(String message,
                        Throwable cause)


Copyright © 2003–2015 Atlassian. All rights reserved.