Class: ParserError

ParserError()

Represents a error while parsing an interaction

Constructor

new ParserError()

Source:

Methods

(static) error(file, message, line) → {Error}

Creates a new Error object
Parameters:
Name Type Description
file string the file where the error has occurred
message string Error message for the user
line number in which line the error has occurred
Source:
Returns:
Type
Error

(static) globalError(file, message, line) → {Error}

Creates a new Error object
Parameters:
Name Type Description
file string the file where the error has occurred
message string Error message for the user
line number in which line the error has occurred
Source:
Returns:
Type
Error

(static) interactionError(interaction, message, line) → {ParserError}

Parameters:
Name Type Description
interaction TestInteraction the interaction that generated the error
message string the error message that we will show
line number which line have the error
Source:
Returns:
Type
ParserError