eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ParseError':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: ParseError


Inheritance:

   Object
   |
   +--GenericException
      |
      +--Exception
         |
         +--Error
            |
            +--ProceedableError
               |
               +--ParseError
                  |
                  +--CompilationError
                  |
                  +--UndefinedSuperclassError
                  |
                  +--UndefinedVariableError

Package:
stx:libcomp
Category:
System-Compiler
Version:
rev: 1.5 date: 2019/02/15 13:49:52
user: cg
file: ParseError.st directory: libcomp
module: stx stc-classLibrary: libcomp

Description:


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.


Instance protocol:

accessing
o  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)

o  endPosition
the end-tokenposition, where the error is located

o  endPosition: anInteger
the end-tokenposition, where the error is located

o  errorMessage

o  errorMessage: aString

o  errorMessage: errorMessageArg startPosition: startPositionArg

o  errorMessage: errorMessageArg startPosition: startPositionArg endPosition: endPositionArg

o  lineNumber
the lineNumber, where the error was detected

o  lineNumber: anInteger
the lineNumber, where the error was detected

o  parser

o  startPosition
the start-tokenposition, where the error is located

o  startPosition: anInteger
the start-tokenposition, where the error is located

o  startPosition: startPositionArg endPosition: endPositionArg



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 26 Apr 2024 08:18:55 GMT