FormulaParseException class final Errors

Raised internally when a formula string cannot be parsed by the evaluation engine.

Through the public API a malformed formula is reported as an #ERROR! cell value, Sheet.evaluate and Excel.recalculate catch parse failures and never rethrow them, so you do not normally catch this type. It exists so the engine can distinguish parse failures from other errors, and it implements FormatException so any on FormatException handler keeps working unchanged.

Inheritance
Implemented types

Constructors

FormulaParseException(String message, [dynamic source, int offset = -1])
Creates a FormulaParseException for the given source formula, with the failing character offset (defaults to -1 when unknown).
const

Properties

cause Object?
The underlying error this one wraps, when available.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String
A human-readable description of what went wrong.
finalinherited
offset int
The character offset into source where parsing failed, or -1 if unknown (matching FormatException's convention).
final
part String?
The package part involved (e.g. xl/worksheets/sheet1.xml), when known.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source → dynamic
The formula source being parsed, when available.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited