org.dasein.cloud
Class InternalException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.dasein.cloud.InternalException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EncryptionException, OperationNotSupportedException

public class InternalException
extends Exception

Represents a local failure in the implementation of this API. It could be a wrapper around an exception caught from a local method call or some other error situation that does not involve any trouble in the cloud.

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
InternalException()
          Constructs an empty internal exception with no message or context information.
InternalException(String msg)
          Constructs a local exception with the specified error message.
InternalException(Throwable cause)
          Constructs a local exception caused by the specified exception.
 
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

InternalException

public InternalException()
Constructs an empty internal exception with no message or context information.


InternalException

public InternalException(String msg)
Constructs a local exception with the specified error message.

Parameters:
msg - a message indicating the nature of the exception

InternalException

public InternalException(Throwable cause)
Constructs a local exception caused by the specified exception.

Parameters:
cause - the underlying exception that caused this error condition to be raised