ScriptStack 1.0.5
Loading...
Searching...
No Matches
ScriptStack.Compiler.ParserException Class Reference
Inheritance diagram for ScriptStack.Compiler.ParserException:
ScriptStack.Runtime.ScriptStackException

Public Member Functions

ParserException() ParserException(string strMessage) ParserException(string strMessage, Exception exceptionInner) ParserException (string message, Token token, [CallerMemberName] string caller="", [CallerFilePath] string file="", [CallerLineNumber] int callLine=0)
Public Member Functions inherited from ScriptStack.Runtime.ScriptStackException
 ScriptStackException ()
 ScriptStackException (string message)
 ScriptStackException (string message, Exception innerException)
override string ToString ()

Private Attributes

Token token

Additional Inherited Members

Properties inherited from ScriptStack.Runtime.ScriptStackException
new string Message [get]
string MessageTrace [get]

Detailed Description

Definition at line 7 of file ParserException.cs.

Constructor & Destructor Documentation

◆ ParserException()

ParserException() ParserException(string strMessage) ParserException(string strMessage, Exception exceptionInner) ScriptStack.Compiler.ParserException.ParserException ( string message,
Token token,
[CallerMemberName] string caller = "",
[CallerFilePath] string file = "",
[CallerLineNumber] int callLine = 0 )

Definition at line 19 of file ParserException.cs.

25 : base($"{message} (Caller: {caller}, {System.IO.Path.GetFileName(file)}:{callLine}) " +
26 $"Zeile {token.Line + 1}, Zeichen {Math.Abs(token.Column - 1)}: {token.Text}")
27 {
28 this.token = token;
29 }

References ScriptStack.Runtime.ScriptStackException.message, and token.

Member Data Documentation

◆ token

Token ScriptStack.Compiler.ParserException.token
private

Definition at line 9 of file ParserException.cs.

Referenced by ParserException().


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