Skip to content

EExprScanner

Exception class for scanner errors

    Declaration

    Source position: fpexprpars.pp line 93

    type
    
      EExprScanner = class(Exception)
      end;
    

    Description

    This exception class is raised by the TFPExpressionScanner when lexical analysis errors occur during expression scanning. It indicates problems encountered while tokenizing the input expression text.

    Common scenarios that trigger this exception include:

    • Invalid character sequences that cannot be recognized as valid tokens
    • Malformed string literals (unclosed quotes)
    • Invalid numeric literals (malformed number formats)
    • Unexpected characters that violate the expression grammar

    The exception typically provides detailed error information including the position where the error occurred and a description of what went wrong during the scanning process.