Context
final class ServiceBootContext extends ContextImpl
Constructor | Description |
---|---|
ServiceBootContext(ContextManager cm) |
Modifier and Type | Method | Description |
---|---|---|
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.
|
boolean |
isLastHandler(int severity) |
Return whether or not this context is the "last" handler for a
the specified severity level.
|
appendErrorInfo, getContextManager, getIdName, popMe, pushMe
ServiceBootContext(ContextManager cm)
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).
public boolean isLastHandler(int severity)
Context
isLastHandler
in interface Context
isLastHandler
in class ContextImpl
Context.isLastHandler(int)
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.