Package org.drasyl.event
Class NodeUnrecoverableErrorEvent
- java.lang.Object
-
- org.drasyl.event.NodeUnrecoverableErrorEvent
-
-
Constructor Summary
Constructors Constructor Description NodeUnrecoverableErrorEvent(Node node, Throwable error)
Deprecated, for removal: This API element is subject to removal in a future version.Useof(Node, Throwable)
instead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Throwable
getError()
Returns the exception that crashed the node.Node
getNode()
Returns the node to which this event refers.int
hashCode()
static NodeUnrecoverableErrorEvent
of(Node node, Throwable error)
String
toString()
-
-
-
Field Detail
-
node
protected final Node node
-
-
Constructor Detail
-
NodeUnrecoverableErrorEvent
@Deprecated(since="0.4.0", forRemoval=true) public NodeUnrecoverableErrorEvent(Node node, Throwable error)
Deprecated, for removal: This API element is subject to removal in a future version.Useof(Node, Throwable)
instead.- Throws:
NullPointerException
- ifnode
orerror
isnull
-
-
Method Detail
-
getError
@NonNull public Throwable getError()
Returns the exception that crashed the node.- Returns:
- the exception that crashed the node
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object o)
-
of
public static NodeUnrecoverableErrorEvent of(Node node, Throwable error)
- Throws:
NullPointerException
- ifnode
orerror
isnull
-
-