java.lang.Object
com.wyu4.snowberryjam.compiler.data.tasks.ErrorTask
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionErrorTask(com.fasterxml.jackson.databind.JsonNode node) Create a new error statement.ErrorTask(ValueHolder message) Create a new error statement.Create a new error statement. -
Method Summary
-
Field Details
-
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- TheJsonNodeto refer
-
ErrorTask
Create a new error statement.- Parameters:
message- the message to warn
-
ErrorTask
Create a new error statement.- Parameters:
message-ValueHolderpointing to the message to warn
-
-
Method Details
-
execute
public void execute()Description copied from interface:ExecutableTaskRun the task- Specified by:
executein interfaceExecutableTask
-
getId
Description copied from interface:ExecutableTaskGet the ID of the task- Specified by:
getIdin interfaceExecutableTask- Returns:
SourceId.ERROR
-
feedback
Description copied from interface:ExecutableTaskGet some feedback from the task. Can be anything, depending on the task.- Specified by:
feedbackin interfaceExecutableTask- Returns:
- The message as a string.
-
toString
-
getValue
- Specified by:
getValuein interfaceValuedTask
-