java.sql
Class SQLRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.sql.SQLRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SQLDataSetSyncException

public class SQLRuntimeException
extends RuntimeException

The subclass of RuntimeException which is thrown by the ease of development APIs, such as DataSet.

Since:
1.6
See Also:
Serialized Form

Constructor Summary
SQLRuntimeException(String reason)
          Constructs a SQLRuntimeException object with a given reason.
SQLRuntimeException(String reason, Throwable cause)
          Constructs a SQLRuntimeException object with a given reason and cause.
SQLRuntimeException(Throwable cause)
          Constructs a SQLRuntimeException object with a given 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

SQLRuntimeException

public SQLRuntimeException(String reason)
Constructs a SQLRuntimeException object with a given reason. The cause is not initialized, and may subsequently be initialized by a call to the Throwable.initCause(java.lang.Throwable) method.

Parameters:
reason - a description of the exception

SQLRuntimeException

public SQLRuntimeException(Throwable cause)
Constructs a SQLRuntimeException object with a given cause. The reason is initialized to null if cause==null or to cause.toString() if cause!=null.

Parameters:
cause - the underlying reason for this SQLRuntimeException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.
Since:
1.6

SQLRuntimeException

public SQLRuntimeException(String reason,
                           Throwable cause)
Constructs a SQLRuntimeException object with a given reason and cause.

Parameters:
reason - a description of the exception.
cause - the underlying reason for this SQLRuntimeException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.
Since:
1.6