|
Class: ParseError
Object
|
+--GenericException
|
+--Exception
|
+--Error
|
+--ProceedableError
|
+--ParseError
|
+--CompilationError
|
+--UndefinedSuperclassError
|
+--UndefinedVariableError
- Package:
- stx:libcomp
- Category:
- System-Compiler
- Version:
- rev:
1.10
date: 2023/05/29 15:47:42
- user: cg
- file: ParseError.st directory: libcomp
- module: stx stc-classLibrary: libcomp
raised for any compilation-related errors.
(originally, I wanted to subclass this from compilationError,
and raise different error for code generator issues (i.e. method too
big, etc.) But all users of the parser in the system (RB-stuff, Lint stuff,
fileIn etc.) always handle the ParseError, and I don't want them to be forced to change.
So we subclass the codeGenerator issues from this one.
copyrightCOPYRIGHT (c) 1989 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
accessing
-
defaultNotifierString
-
accessing
-
description
-
construct the description from my default description (i.e. 'Parse Error:'),
followed by the actual parse-error-message, followed by the lineNumber (if known)
Usage example(s):
avoid redundant information (in case the line number is already in the description)
|
-
endPosition
-
the end-tokenposition, where the error is located
-
endPosition: anInteger
-
the end-tokenposition, where the error is located
-
errorMessage
-
-
errorMessage: aString
-
-
errorMessage: errorMessageArg startPosition: startPositionArg
-
-
errorMessage: errorMessageArg startPosition: startPositionArg endPosition: endPositionArg
-
-
filename
-
the file, in which the error was detected (if reading from one)
-
filename: aFiename
-
the file, in which the error was detected (if reading from one)
-
lineNumber
-
the lineNumber, where the error was detected
-
lineNumber: anInteger
-
the lineNumber, where the error was detected
-
parser
-
-
startPosition
-
the start-tokenposition, where the error is located
-
startPosition: anInteger
-
the start-tokenposition, where the error is located
-
startPosition: startPositionArg endPosition: endPositionArg
-
compatibility - VW
-
position
-
|