Expresso 5-6

com.jcorporate.expresso.core.db
Class DBException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.jcorporate.expresso.kernel.exception.ChainedException
              extended bycom.jcorporate.expresso.core.db.DBException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConnectionPoolException, DataException, DBRecordChangedException, DBRecordNotFoundException, DSException

public class DBException
extends ChainedException

DBException

Author:
Michael Nash
See Also:
Serialized Form

Constructor Summary
DBException()
           
DBException(String s)
           
DBException(String s, String newDBMessage)
           
DBException(String s, Throwable t)
           
DBException(Throwable t)
           
 
Method Summary
 String getDBMessage()
          Retrieve the message that was received from the JDBC driver
 String getMessage()
          Returns the Exception Message
 
Methods inherited from class com.jcorporate.expresso.kernel.exception.ChainedException
getErrorNumber, getNested, omitPackages, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBException

public DBException()

DBException

public DBException(String s)
Parameters:
s - The Exception message

DBException

public DBException(String s,
                   String newDBMessage)
Parameters:
s - The message String
newDBMessage - The message retrieved from the JDBC driver

DBException

public DBException(String s,
                   Throwable t)
Parameters:
s - The message String
t - java.lang.Throwable, presumably an exception you've already caught in another block of code.

DBException

public DBException(Throwable t)
Parameters:
t - java.lang.Throwable, presumably an exception you've already caught in another block of code.
Method Detail

getDBMessage

public String getDBMessage()
Retrieve the message that was received from the JDBC driver

Returns:
the DBMessage

getMessage

public String getMessage()
Returns the Exception Message

Overrides:
getMessage in class ChainedException
Returns:
the exception message

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.