# OperationCanceledError Class

> OperationCanceledError class in the TX Sheet Control JavaScript API for Node.js, with 1 property and a JavaScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Path:** TX Sheet Control > API Reference > JavaScript API > Node.js Server > OperationCanceledError Class
- **356 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/operationcancelederror/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/operationcancelederror/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/operationcancelederror/llms-full.txt

---

Raised when a host cancels a mutation; the shared transaction rolls it back atomically.

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Constructor

```javascript
new OperationCanceledError()
```

This overload has no parameters.

Returns: `OperationCanceledError`.

### Members

#### Properties

| Property | Description |
|---|---|
| [code](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/operationcancelederror/code-property/llms-full.txt) | The code value of OperationCanceledError. |

### Examples

Pass the OperationCanceledError value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

```javascript
'use strict';

function inspectOperationCanceledErrorCode(operationCanceledError) {
    const value = operationCanceledError['code'];
    console.log('OperationCanceledError.code', value);
}
```

### See Also

- [JavaScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## In This Section

- [OperationCanceledError.code Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/operationcancelederror/code-property/llms-full.txt): OperationCanceledError.code property in the TX Sheet Control JavaScript API for Node.js, with its type "OPERATION_CANCELED" and a JavaScript example.

---

## Nearby

- **Previous:** [NamedRangeCollection.set Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/namedrangecollection/set-method/llms-full.txt)
- **Next:** [OperationCanceledError.code Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/operationcancelederror/code-property/llms-full.txt)
