net.sf.zig_project.gpl.common.queue
Class RollbackError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended bynet.sf.zig_project.gpl.common.queue.RollbackError
All Implemented Interfaces:
Serializable

public class RollbackError
extends Error

Indicates that a Queue recieved an exception while rolling back from another exception. The state of the Queue when a RollbackError is thrown is undefined, hence the seriousness of using Error.

This is the result, generally of a bulk operation, in which the primary Exception is thrown. The Queue automatically will attempt to revert back to its prior state before rethrowing the Exception when, in the process of the rollback, the secondary Exception is thrown.

Version:
November 1, 2004
Author:
Frank Ziglar
See Also:
Serialized Form

Field Summary
 RuntimeException primary
           
 RuntimeException secondary
           
 
Constructor Summary
RollbackError(RuntimeException e1, RuntimeException e2)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

primary

public final RuntimeException primary

secondary

public final RuntimeException secondary
Constructor Detail

RollbackError

public RollbackError(RuntimeException e1,
                     RuntimeException e2)