com.caucho.amber
Class AmberException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by com.caucho.amber.AmberException
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<java.lang.Throwable>
Direct Known Subclasses:
QueryParseException

public class AmberException
extends java.sql.SQLException

An amber exception is a SQLException

See Also:
Serialized Form

Constructor Summary
AmberException()
          Creates the exception with a message.
AmberException(java.lang.String message)
          Creates the exception with a message.
AmberException(java.lang.String message, java.lang.Throwable e)
          Creates the wrapper with a message and a root cause.
AmberException(java.lang.Throwable e)
          Creates the wrapper with a root cause.
 
Method Summary
static AmberException create(java.lang.Throwable e)
           
 java.lang.Throwable getCause()
          Returns the root cause.
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

AmberException

public AmberException()
Creates the exception with a message.


AmberException

public AmberException(java.lang.String message)
Creates the exception with a message.


AmberException

public AmberException(java.lang.String message,
                      java.lang.Throwable e)
Creates the wrapper with a message and a root cause.

Parameters:
message - the message.
e - the rootCause exception

AmberException

public AmberException(java.lang.Throwable e)
Creates the wrapper with a root cause.

Parameters:
message - the message.
e - the rootCause exception
Method Detail

create

public static AmberException create(java.lang.Throwable e)

getCause

public java.lang.Throwable getCause()
Returns the root cause.

Overrides:
getCause in class java.lang.Throwable