planetj.dataengine.exception
Class DETransactionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byplanetj.exception.CMException
              extended byplanetj.dataengine.exception.DataEngineException
                  extended byplanetj.dataengine.exception.DETransactionException
All Implemented Interfaces:
java.io.Serializable

public class DETransactionException
extends DataEngineException

This class is used to encapsulate multiple exceptions that occur while doing mulitple transactions.

An example would be inserting a RowCollection into the database. If an insert of a Row fails, its exception can be added to the DETransactionException and the rest of the Rows can still be inserted.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class planetj.exception.CMException
DISPLAY_ALL, DISPLAY_CLASS_INFO, DISPLAY_DETAILED_MESSAGE, DISPLAY_MESSAGE, DISPLAY_ORIGINAL_EXCEPTION, FATAL, INFO, propertyChange, SHOW_EXCEPTION, WARNING
 
Constructor Summary
DETransactionException(java.lang.Exception e)
          DETransactionException constructor comment.
DETransactionException(java.lang.Exception e, java.lang.String pMessage)
          DETransactionException constructor comment.
DETransactionException(java.lang.String s)
          DETransactionException constructor comment.
 
Method Summary
 void addException(java.lang.Exception e)
           
 java.util.List getExceptions()
           
 java.lang.String toString()
          Returns the exception output as a String.
 
Methods inherited from class planetj.exception.CMException
addPropertyChangeListener, firePropertyChange, getCMMessage, getDetailedMessage, getDisplayString, getDisplayStringInternal, getDisplayType, getMessage, getNextException, getOriginalException, getPropertyChange, getType, removePropertyChangeListener, setDetailedMessage, setDisplayType, setMessage, setNextException, setOriginalException, setType
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DETransactionException

public DETransactionException(java.lang.Exception e)
DETransactionException constructor comment.

Parameters:
e - java.lang.Exception

DETransactionException

public DETransactionException(java.lang.Exception e,
                              java.lang.String pMessage)
DETransactionException constructor comment.

Parameters:
e - java.lang.Exception
pMessage - java.lang.String

DETransactionException

public DETransactionException(java.lang.String s)
DETransactionException constructor comment.

Parameters:
s - java.lang.String
Method Detail

addException

public void addException(java.lang.Exception e)

getExceptions

public java.util.List getExceptions()

toString

public java.lang.String toString()
Returns the exception output as a String.

Overrides:
toString in class CMException
Returns:
java.lang.String