# DetailedCellError

## Constructors

### constructor 

\+ **new DetailedCellError**(`error`: [CellError](cellerror.md), `value`: string, `address?`: undefined | string): *[DetailedCellError](detailedcellerror.md)*

*Defined in [src/CellValue.ts:43](https://github.com/handsontable/hyperformula/blob/5d90bec/src/CellValue.ts#L43)*

**Parameters:**

Name | Type |
------ | ------ |
`error` | [CellError](cellerror.md) |
`value` | string |
`address?` | undefined &#124; string |

**Returns:** *[DetailedCellError](detailedcellerror.md)*

## Properties

### address

• **address**? : *undefined | string*

*Defined in [src/CellValue.ts:48](https://github.com/handsontable/hyperformula/blob/5d90bec/src/CellValue.ts#L48)*

___

### argumentIndex

• **argumentIndex**? : *undefined | number*

*Defined in [src/CellValue.ts:43](https://github.com/handsontable/hyperformula/blob/5d90bec/src/CellValue.ts#L43)*

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

• **hasMessage**: *boolean*

*Defined in [src/CellValue.ts:23](https://github.com/handsontable/hyperformula/blob/5d90bec/src/CellValue.ts#L23)*

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

• **message**: *string*

*Defined in [src/CellValue.ts:13](https://github.com/handsontable/hyperformula/blob/5d90bec/src/CellValue.ts#L13)*

___

### originFunction

• **originFunction**? : *undefined | string*

*Defined in [src/CellValue.ts:33](https://github.com/handsontable/hyperformula/blob/5d90bec/src/CellValue.ts#L33)*

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

• **type**: *[ErrorType](hyperformulans.md#static-errortype)*

*Defined in [src/CellValue.ts:12](https://github.com/handsontable/hyperformula/blob/5d90bec/src/CellValue.ts#L12)*

___

### value

• **value**: *string*

*Defined in [src/CellValue.ts:47](https://github.com/handsontable/hyperformula/blob/5d90bec/src/CellValue.ts#L47)*

## Methods

### toString 

▸ **toString**(): *string*

*Defined in [src/CellValue.ts:57](https://github.com/handsontable/hyperformula/blob/5d90bec/src/CellValue.ts#L57)*

**Returns:** *string*

___

### valueOf 

▸ **valueOf**(): *string*

*Defined in [src/CellValue.ts:61](https://github.com/handsontable/hyperformula/blob/5d90bec/src/CellValue.ts#L61)*

**Returns:** *string*