> For the complete documentation index, see [llms.txt](https://dexiejs.typogram.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dexiejs.typogram.co/transaction/transaction.on.error.md).

# Transaction.on.error

```javascript
trans.on("error", function () {
    // Do stuff when transaction fails
});
```
