java.lang.Object
com.wyu4.snowberryjam.compiler.data.tasks.ErrorTask
All Implemented Interfaces:
ExecutableTask, ValuedTask

public class ErrorTask extends Object implements ExecutableTask, ValuedTask
An error statement. The message is stored as SourceKey.VALUE. Unless there's something wrong with the ValueHolder or LocalStorage classes, this class is guaranteed throw an error.
  • Field Details

    • message

      private final ValueHolder message
      The message. Can be any type.
  • Constructor Details

    • ErrorTask

      public ErrorTask(com.fasterxml.jackson.databind.JsonNode node)
      Create a new error statement.
      Parameters:
      node - The JsonNode to refer
    • ErrorTask

      public ErrorTask(String message)
      Create a new error statement.
      Parameters:
      message - the message to warn
    • ErrorTask

      public ErrorTask(ValueHolder message)
      Create a new error statement.
      Parameters:
      message - ValueHolder pointing to the message to warn
  • Method Details