cz.cuni.amis.pogamut.base.component.bus.event.impl
Class FatalErrorEvent<SOURCE extends IComponent>

Package class diagram package FatalErrorEvent
java.lang.Object
  extended by 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>


Field Summary
protected  Throwable cause
           
protected  SOURCE component
           
protected  String message
           
protected  Object origin
           
protected  StackTraceElement[] stackTrace
           
 
Constructor Summary
FatalErrorEvent(SOURCE component, String message)
           
FatalErrorEvent(SOURCE component, String message, Throwable cause)
           
FatalErrorEvent(SOURCE component, Throwable cause)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

origin

protected Object origin

component

protected SOURCE extends IComponent component

message

protected String message

cause

protected Throwable cause

stackTrace

protected StackTraceElement[] stackTrace
Constructor Detail

FatalErrorEvent

public FatalErrorEvent(SOURCE component,
                       String message)

FatalErrorEvent

public FatalErrorEvent(SOURCE component,
                       String message,
                       Throwable cause)

FatalErrorEvent

public FatalErrorEvent(SOURCE component,
                       Throwable cause)
Method Detail

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 © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.