com.jcorporate.expresso.core.db
Class DBException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.jcorporate.expresso.kernel.exception.ChainedException
com.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
DBException
public DBException()
DBException
public DBException(String s)
- Parameters:
s - The Exception message
DBException
public DBException(String s,
String newDBMessage)
- Parameters:
s - The message StringnewDBMessage - The message retrieved from the JDBC driver
DBException
public DBException(String s,
Throwable t)
- Parameters:
s - The message Stringt - 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.
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
Please see www.jcorporate.com for information about new Expresso releases.