|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.iapi.services.context.ContextImpl
org.apache.derby.iapi.services.context.SystemContext
final class SystemContext
A context that shuts the system down if it gets an StandardException with a severity greater than or equal to ExceptionSeverity.SYSTEM_SEVERITY or an exception that is not a StandardException.
Constructor Summary | |
---|---|
SystemContext(ContextManager cm)
|
Method Summary | |
---|---|
void |
cleanupOnError(java.lang.Throwable t)
Contexts will be passed errors that are caught by the outer system when they are serious enough to require corrective action. |
Methods inherited from class org.apache.derby.iapi.services.context.ContextImpl |
---|
appendErrorInfo, getContextManager, getIdName, isLastHandler, popMe, pushMe |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
SystemContext(ContextManager cm)
Method Detail |
---|
public void cleanupOnError(java.lang.Throwable t)
Context
Contexts must release all their resources before removing themselves from their context manager.
The context manager will "unwind" the contexts during cleanup in the reverse order they were placed on its global stack.
If error is an instance of StandardException then an implementation of this method may throw a new exception if and only if the new exception is an instance of StandardException that is more severe than the original error or the new exception is a not an instance of StandardException (e.g java.lang.NullPointerException).
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |