Sign in Join
FPDoc Onlineexperiment

EExprParser class

In unit fpExprPars

Expression parser exception class

Declaration

pascal
EExprParser = class(Exception)

Inheritance

  1. EExprParser
  2. Exception
  3. TObject

Description

This exception class is raised by the TFPExpressionParser when parsing or evaluation errors occur. It encompasses both syntactic errors during expression parsing and runtime errors during expression evaluation.

This exception is raised in various scenarios:

  • Syntax errors in expression structure (mismatched parentheses, invalid operators)
  • Type mismatches during expression evaluation
  • Undefined variable or function references
  • Runtime errors during function calls or mathematical operations
  • Invalid function arguments or parameter count mismatches
  • Division by zero and other mathematical errors

Inherited

From Exception (12)

Create CreateFmt CreateFmtHelp CreateHelp CreateRes CreateResFmt CreateResFmtHelp CreateResHelp GetBaseException HelpContext Message ToString

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Destroy Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.