# CellError

## Constructors

### constructor

\+ **new CellError**(`type`: [ErrorType](hyperformulans.md#static-errortype), `message?`: undefined | string, `root?`: FormulaVertex, `originFunction?`: undefined | string, `argumentIndex?`: undefined | number, `propagated`: boolean, `originAddress?`: [SimpleCellAddress](../interfaces/simplecelladdress.md), `originAddressVersion?`: undefined | number, `originLocked`: boolean): *[CellError](cellerror.md)*

*Defined in [hyperformula/src/Cell.ts:163](https://github.com/handsontable/hyperformula/blob/b297384/hyperformula/src/Cell.ts#L163)*

**Parameters:**

Name | Type | Default |
------ | ------ | ------ |
`type` | [ErrorType](hyperformulans.md#static-errortype) | - |
`message?` | undefined &#124; string | - |
`root?` | FormulaVertex | - |
`originFunction?` | undefined &#124; string | - |
`argumentIndex?` | undefined &#124; number | - |
`propagated` | boolean | false |
`originAddress?` | [SimpleCellAddress](../interfaces/simplecelladdress.md) | - |
`originAddressVersion?` | undefined &#124; number | - |
`originLocked` | boolean | false |

**Returns:** *[CellError](cellerror.md)*

## Properties

### argumentIndex

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

*Defined in [hyperformula/src/Cell.ts:169](https://github.com/handsontable/hyperformula/blob/b297384/hyperformula/src/Cell.ts#L169)*

___

### message

• **message**? : *undefined | string*

*Defined in [hyperformula/src/Cell.ts:166](https://github.com/handsontable/hyperformula/blob/b297384/hyperformula/src/Cell.ts#L166)*

___

### originFunction

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

*Defined in [hyperformula/src/Cell.ts:168](https://github.com/handsontable/hyperformula/blob/b297384/hyperformula/src/Cell.ts#L168)*

___

### root

• **root**? : *FormulaVertex*

*Defined in [hyperformula/src/Cell.ts:167](https://github.com/handsontable/hyperformula/blob/b297384/hyperformula/src/Cell.ts#L167)*

___

### type

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

*Defined in [hyperformula/src/Cell.ts:165](https://github.com/handsontable/hyperformula/blob/b297384/hyperformula/src/Cell.ts#L165)*

## Methods

### attachRootVertex

▸ **attachRootVertex**(`vertex`: FormulaVertex): *[CellError](cellerror.md)*

*Defined in [hyperformula/src/Cell.ts:309](https://github.com/handsontable/hyperformula/blob/b297384/hyperformula/src/Cell.ts#L309)*

**Parameters:**

Name | Type |
------ | ------ |
`vertex` | FormulaVertex |

**Returns:** *[CellError](cellerror.md)*

___

### parsingError

▸ **parsingError**(`detailedMessage?`: undefined | string): *[CellError](cellerror.md)*

*Defined in [hyperformula/src/Cell.ts:305](https://github.com/handsontable/hyperformula/blob/b297384/hyperformula/src/Cell.ts#L305)*

Returns a CellError with a given message.

**Parameters:**

Name | Type | Description |
------ | ------ | ------ |
`detailedMessage?` | undefined &#124; string | message to be displayed  |

**Returns:** *[CellError](cellerror.md)*