# DetailedCellError Class
# Constructors
# constructor
+ new DetailedCellError(error: CellError, value: string, address?: undefined | string): DetailedCellError
Defined in src/CellValue.ts:43 (opens new window)
Parameters:
| Name | Type |
|---|---|
error | CellError |
value | string |
address? | undefined | string |
Returns: DetailedCellError
# Properties
# address OptionalReadonly
• address? : undefined | string
Defined in src/CellValue.ts:48 (opens new window)
# argumentIndex OptionalReadonly
• argumentIndex? : undefined | number
Defined in src/CellValue.ts:43 (opens new window)
The zero-based index of the argument that was rejected, when originFunction names a
function whose own argument coercion produced this error.
undefined whenever the error was not a coercion failure on one of the origin
function's own arguments — including when it came from a nested call (its own
originFunction already claimed it) or was propagated from elsewhere.
# hasMessage Readonly
• hasMessage: boolean
Defined in src/CellValue.ts:23 (opens new window)
Whether the underlying error carried a message at all.
message collapses "no message" and "an empty message" into ''; this flag
keeps them apart for consumers that need to know whether a cause was stated.
Errors produced by HyperFormula itself always carry one — a false here
means the error came from a custom function that did not supply a message.
# message Readonly
• message: string
Defined in src/CellValue.ts:13 (opens new window)
# originFunction OptionalReadonly
• originFunction? : undefined | string
Defined in src/CellValue.ts:33 (opens new window)
The function or operator that produced this error, e.g. 'SUM' or 'divide'.
undefined when no function or operator produced it — a value typed directly into a
cell, a parsing error, or an error read from another cell without originating here.
First occurrence wins: a function that only reads or propagates an error never claims
to have produced it.
# type Readonly
• type: ErrorType
Defined in src/CellValue.ts:12 (opens new window)
# value Readonly
• value: string
Defined in src/CellValue.ts:47 (opens new window)
# Methods
# toString
▸ toString(): string
Defined in src/CellValue.ts:57 (opens new window)
Returns: string
# valueOf
▸ valueOf(): string
Defined in src/CellValue.ts:61 (opens new window)
Returns: string