QScript  2.1.2
Expression and algorithm evaluator
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | Static Protected Attributes | List of all members
org.qscript.errors.ScriptException Class Reference

Inherits Exception.

Inherited by org.qscript.errors.EvaluationException, and org.qscript.errors.SyntaxException.

Public Member Functions

 ScriptException (String message)
 
 ScriptException (Token token, ErrorType type)
 
 ScriptException (ErrorType type)
 

Public Attributes

final int lineNo
 
final int charNo
 
final int charWidth
 
final ErrorType type
 

Static Protected Attributes

static final String LONG_MESSAGE = "{0} in line: {1} : at char: {2}"
 
static final String SHORT_MESSAGE = "{0}"
 

Detailed Description

The parent class for all exceptions thrown by the QScript library classes..

Author
Peter Lager

Constructor & Destructor Documentation

org.qscript.errors.ScriptException.ScriptException ( Token  token,
ErrorType  type 
)

Create a ScriptException.

Parameters
tokenthe token where the exception occurred (can be null for generic error)
typethe enumerated error type placeholder for additional information
org.qscript.errors.ScriptException.ScriptException ( ErrorType  type)

Create a ScriptException.

Parameters
typethe enumerated error type placeholder for additional information

The documentation for this class was generated from the following file: