|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
dimawo.agents.UncaughtThrowable
public class UncaughtThrowable
This class essentially overrides stack trace printing methods in order to
add to a throwable's stack trace, an additional stack representing the
nesting of components identified by their name (see
ErrorHandler class). For example, if a component
A is nested into
a component B (but may be nested into another component) and an uncaught
exception is produced by the execution of component A, an
UncaughtThrowable stack trace will contain informations about
the fact that A is nested into B, in addition to the traditional stack trace.
| Field Summary | |
|---|---|
protected String |
componentName
The name of the component that did not handle the Throwable. |
protected Throwable |
t
The unhandled Throwable. |
| Constructor Summary | |
|---|---|
UncaughtThrowable(Throwable t,
String childName)
Constructs an UncaughtThrowable in function of given
Throwable and component name. |
|
| Method Summary | |
|---|---|
String |
getComponentName()
Returns the name of the source component. |
void |
printStackTrace()
|
void |
printStackTrace(PrintStream out)
Prints the stack trace to the specified print stream. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Throwable t
Throwable.
protected String componentName
| Constructor Detail |
|---|
public UncaughtThrowable(Throwable t,
String childName)
UncaughtThrowable in function of given
Throwable and component name.
t - The Throwable.childName - The name of source component.| Method Detail |
|---|
public String getComponentName()
public void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintStream out)
printAgentStackTrace(out) call.
printStackTrace in class ThrowableprintAgentStackTrace(PrintStream)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||