|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sleepycat.je.DatabaseException
com.sleepycat.je.OperationFailureException
com.sleepycat.je.rep.StateChangeException
public abstract class StateChangeException
Provides a synchronous mechanism for informing an application about a change in the state of the replication node. StateChangeException is an abstract class, with subtypes for each type of Transition.
A single state change can result in multiple state change exceptions (one per thread operating against the environment). Each exception is associated with the event that provoked the exception. The application can use this association to ensure that each such event is processed just once.
Constructor Summary | |
---|---|
protected |
StateChangeException(Locker locker,
StateChangeEvent stateChangeEvent)
For internal use only. |
protected |
StateChangeException(String message,
Exception reason)
Used when no state change event is available |
protected |
StateChangeException(String message,
StateChangeException cause)
For internal use only. |
Method Summary | |
---|---|
StateChangeEvent |
getEvent()
Returns the event that resulted in this exception. |
Methods inherited from class com.sleepycat.je.OperationFailureException |
---|
wrapSelf |
Methods inherited from class com.sleepycat.je.DatabaseException |
---|
addErrorMessage, getMessage, getVersionHeader |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected StateChangeException(Locker locker, StateChangeEvent stateChangeEvent)
protected StateChangeException(String message, Exception reason)
protected StateChangeException(String message, StateChangeException cause)
Method Detail |
---|
public StateChangeEvent getEvent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |