Expresso 5-6

com.jcorporate.expresso.core.dataobjects
Class DataException

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
                  extended bycom.jcorporate.expresso.core.dataobjects.DataException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DuplicateKeyException, JDBCUtil

public class DataException
extends DBException

Base class exception for the dataobjects framework. It is currently derived from DBException to allow for merging between the two distinct frameworks. The old DBObjects and the new DataObjects

Author:
Michael Rimov
See Also:
Serialized Form

Constructor Summary
DataException()
          Default Constructor
DataException(String s)
          Constructs a DataException using a message
DataException(String s, String newDatasourceMessage)
           
DataException(String s, Throwable t)
          Constructs a DataException using a message
DataException(Throwable t)
          Constructs a DataException embedding an Exception within it.
 
Methods inherited from class com.jcorporate.expresso.core.db.DBException
getDBMessage, getMessage
 
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

DataException

public DataException()
Default Constructor


DataException

public DataException(String s)
Constructs a DataException using a message

Parameters:
s - The message String

DataException

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

DataException

public DataException(String s,
                     Throwable t)
Constructs a DataException using a message

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

DataException

public DataException(Throwable t)
Constructs a DataException embedding an Exception within it.

Parameters:
t - java.lang.Throwable, presumably an exception you've already caught in another block of code.

Expresso 5-6

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