planetj.dataengine.exception
Class DETransactionException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--planetj.exception.CMException
                    |
                    +--planetj.dataengine.exception.DataEngineException
                          |
                          +--planetj.dataengine.exception.DETransactionException
All Implemented Interfaces:
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, SHOW_EXCEPTION, WARNING
 
Constructor Summary
DETransactionException(Exception e)
          DETransactionException constructor comment.
DETransactionException(Exception e, String pMessage)
          DETransactionException constructor comment.
DETransactionException(String s)
          DETransactionException constructor comment.
 
Method Summary
 void addException(Exception e)
           
 List getExceptions()
           
 String toString()
          Returns the exception output as a String.
 
Methods inherited from class planetj.exception.CMException
addPropertyChangeListener, firePropertyChange, getCMMessage, getDetailedMessage, getDisplayString, getDisplayType, getMessage, getNextException, getOriginalException, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DETransactionException

public DETransactionException(Exception e)
DETransactionException constructor comment.

Parameters:
e - java.lang.Exception

DETransactionException

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

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

DETransactionException

public DETransactionException(String s)
DETransactionException constructor comment.

Parameters:
s - java.lang.String
Method Detail

addException

public void addException(Exception e)

getExceptions

public List getExceptions()

toString

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

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