cz.cuni.amis.pogamut.base.component.bus.event.impl
Class FatalErrorEvent<SOURCE extends IComponent>
java.lang.Object
cz.cuni.amis.pogamut.base.component.bus.event.impl.FatalErrorEvent<SOURCE>
- All Implemented Interfaces:
- IFatalErrorEvent<SOURCE>, IComponentEvent<SOURCE>
- Direct Known Subclasses:
- ComponentBusErrorEvent, FatalErrorPropagatingEvent
public class FatalErrorEvent<SOURCE extends IComponent>
- extends Object
- implements IFatalErrorEvent<SOURCE>
origin
protected Object origin
component
protected SOURCE extends IComponent component
message
protected String message
cause
protected Throwable cause
stackTrace
protected StackTraceElement[] stackTrace
FatalErrorEvent
public FatalErrorEvent(SOURCE component,
String message)
FatalErrorEvent
public FatalErrorEvent(SOURCE component,
String message,
Throwable cause)
FatalErrorEvent
public FatalErrorEvent(SOURCE component,
Throwable cause)
getSource
public SOURCE getSource()
- Specified by:
getSource
in interface IComponentEvent<SOURCE extends IComponent>
getCause
public Throwable getCause()
- Description copied from interface:
IFatalErrorEvent
- Exception associated with the error, may be null.
- Specified by:
getCause
in interface IFatalErrorEvent<SOURCE extends IComponent>
- Returns:
getMessage
public String getMessage()
- Description copied from interface:
IFatalErrorEvent
- Returns description of what went wrong.
- Specified by:
getMessage
in interface IFatalErrorEvent<SOURCE extends IComponent>
- Returns:
getStackTrace
public StackTraceElement[] getStackTrace()
- Description copied from interface:
IFatalErrorEvent
- Stack trace of the error - first element of the stacktrace should be the place where
the fatal error event has been created.
- Specified by:
getStackTrace
in interface IFatalErrorEvent<SOURCE extends IComponent>
- Returns:
printStackStrace
protected String printStackStrace(StackTraceElement[] stackTraceToPrint,
String indent)
toString
public String toString()
- Overrides:
toString
in class Object
getSummary
public String getSummary()
- Description copied from interface:
IFatalErrorEvent
- Called to get a long human-readable description of the fatal error.
- Specified by:
getSummary
in interface IFatalErrorEvent<SOURCE extends IComponent>
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.