org.dasein.cloud
Class CloudException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.dasein.cloud.CloudException
All Implemented Interfaces:
Serializable

public class CloudException
extends Exception

Represents some kind of failure with the cloud provider or with the format of a request to the cloud provider.

The Dasein Cloud API divides exceptional conditions into two groups: cloud exceptions and internal exception. A cloud exception is simply an error that occurs in the cloud, whereas an internal exception is one that occurs on the localhost within the implementation of this API for a particular provider. This distinction can help clients determine how to recover from any given error.

Author:
George Reese @ enStratus (http://www.enstratus.com)
See Also:
Serialized Form

Constructor Summary
CloudException()
          Constructs an unlabeled exception.
CloudException(String msg)
          Constructs a cloud exception with a specific error message.
CloudException(Throwable cause)
          Constructs a cloud exception in response to a specific cause.
 
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

CloudException

public CloudException()
Constructs an unlabeled exception.


CloudException

public CloudException(String msg)
Constructs a cloud exception with a specific error message.

Parameters:
msg - the message for the error that occurred

CloudException

public CloudException(Throwable cause)
Constructs a cloud exception in response to a specific cause.

Parameters:
cause - the error that caused this exception to be thrown