Class NodeUnrecoverableErrorEvent

java.lang.Object
org.drasyl.event.NodeUnrecoverableErrorEvent
All Implemented Interfaces:
Event, NodeEvent

public class NodeUnrecoverableErrorEvent extends Object
This events signals that the node encountered an unrecoverable error.

This is an immutable object.

  • Field Details

    • node

      protected final Node node
  • Constructor Details

    • NodeUnrecoverableErrorEvent

      public NodeUnrecoverableErrorEvent(Node node, Throwable error)
  • Method Details

    • getError

      public Throwable getError()
      Returns the exception that crashed the node.
      Returns:
      the exception that crashed the node
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
    • equals

      public boolean equals(Object o)
    • getNode

      public Node getNode()
      Description copied from interface: NodeEvent
      Returns the node to which this event refers.
      Specified by:
      getNode in interface NodeEvent
      Returns:
      the node to which this event refers.