com.northgateis.reality.realsql
Class RealSQLException

java.lang.Object
 |
 +--java.lang.Throwable
 |
 +--java.lang.Exception
 |
 +--java.sql.SQLException
 |
 +--com.northgateis.reality.realsql.RealSQLException

public class RealSQLException
extends java.sql.SQLException

Wrapper object for SQLException's generated by the driver.

The constructors are the same as used by java.sql.SQLException, but with the supplied reason string concatenated to the vender and driver names.


Example:
RealSQLException(reason)
Is transformed into:
SQLException("[Northgate][RealSQL-JDBC]" + reason)

See Also:
SQLException, Serialized Form

Constructor Summary
RealSQLException(java.lang.Exception e)
          Create's a new RealSQLException with the reason set to e.getMessage().
RealSQLException(java.lang.String reason)
           
RealSQLException(java.lang.String reason, java.lang.String SQLState)
           
RealSQLException(java.lang.String reason, java.lang.String SQLState, int vendorCode)
           
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RealSQLException

public RealSQLException(java.lang.String reason)

RealSQLException

public RealSQLException(java.lang.String reason,
 java.lang.String SQLState)

RealSQLException

public RealSQLException(java.lang.String reason,
 java.lang.String SQLState,
 int vendorCode)

RealSQLException

public RealSQLException(java.lang.Exception e)
Create's a new RealSQLException with the reason set to e.getMessage().

If the exception is an 'instanceof SQLException' it is chained to this exception.

Parameters:
e - exception used to construct a new RealSQLException.