public class FatalErrorEvent<SOURCE extends IComponent> extends Object implements IFatalErrorEvent<SOURCE>
| Modifier and Type | Field and Description |
|---|---|
protected Throwable |
cause |
protected SOURCE |
component |
protected String |
message |
protected Object |
origin |
protected StackTraceElement[] |
stackTrace |
| Constructor and Description |
|---|
FatalErrorEvent(SOURCE component,
String message) |
FatalErrorEvent(SOURCE component,
String message,
Throwable cause) |
FatalErrorEvent(SOURCE component,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
Exception associated with the error, may be null.
|
String |
getMessage()
Returns description of what went wrong.
|
SOURCE |
getSource() |
StackTraceElement[] |
getStackTrace()
Stack trace of the error - first element of the stacktrace should be the place where
the fatal error event has been created.
|
String |
getSummary()
Called to get a long human-readable description of the fatal error.
|
protected String |
printStackStrace(StackTraceElement[] stackTraceToPrint,
String indent) |
String |
toString() |
protected Object origin
protected SOURCE extends IComponent component
protected String message
protected Throwable cause
protected StackTraceElement[] stackTrace
public SOURCE getSource()
getSource in interface IComponentEvent<SOURCE extends IComponent>public Throwable getCause()
IFatalErrorEventgetCause in interface IFatalErrorEvent<SOURCE extends IComponent>public String getMessage()
IFatalErrorEventgetMessage in interface IFatalErrorEvent<SOURCE extends IComponent>public StackTraceElement[] getStackTrace()
IFatalErrorEventgetStackTrace in interface IFatalErrorEvent<SOURCE extends IComponent>protected String printStackStrace(StackTraceElement[] stackTraceToPrint, String indent)
public String getSummary()
IFatalErrorEventgetSummary in interface IFatalErrorEvent<SOURCE extends IComponent>Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.