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:
java.io.Serializable
Direct Known Subclasses:
BadRequestException, ConflictException, InternalServerException, NotFoundException, NotImplementedServiceException, PermissionException

@ExperimentalApi
public class ServiceException
extends java.lang.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(java.lang.String message)
           
ServiceException(java.lang.String message, java.lang.Throwable cause)
           
ServiceException(java.lang.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(java.lang.String message)

ServiceException

public ServiceException(java.lang.Throwable throwable)

ServiceException

public ServiceException(java.lang.String message,
                        java.lang.Throwable cause)


Copyright © 2003-2014 Atlassian. All Rights Reserved.