Class ErrorNodeException

All Implemented Interfaces:
Serializable

public class ErrorNodeException extends AnchorCheckedException
An exception that adds a string to the current error node.

This exception is used to propagate errors while also allowing them to be added to an ErrorNode.

See Also:
  • Constructor Details

    • ErrorNodeException

      public ErrorNodeException(String str)
      Constructs a new ErrorNodeException with the specified error message.
      Parameters:
      str - the error message
    • ErrorNodeException

      public ErrorNodeException(Exception e)
      Constructs a new ErrorNodeException from another exception.
      Parameters:
      e - the exception to convert into an ErrorNodeException
  • Method Details

    • addToErrorNode

      public void addToErrorNode(ErrorNode errorNode)
      Adds the error message associated with this exception to an ErrorNode.
      Parameters:
      errorNode - the ErrorNode to which the error message should be added