Package org.drasyl.event
Class NodeUnrecoverableErrorEvent
- java.lang.Object
-
- org.drasyl.event.NodeUnrecoverableErrorEvent
-
public abstract class NodeUnrecoverableErrorEvent extends Object implements NodeEvent
This events signals that the node encountered an unrecoverable error.This is an immutable object.
- See Also:
NodeUpEvent
,NodeDownEvent
,NodeNormalTerminationEvent
-
-
Constructor Summary
Constructors Constructor Description NodeUnrecoverableErrorEvent()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Throwable
getError()
Returns the exception that crashed the node.static NodeUnrecoverableErrorEvent
of(Node node, Throwable error)
-
-
-
Method Detail
-
getError
public abstract Throwable getError()
Returns the exception that crashed the node.- Returns:
- the exception that crashed the node
-
of
public static NodeUnrecoverableErrorEvent of(Node node, Throwable error)
- Throws:
NullPointerException
- ifnode
orerror
isnull
-
-