error

open external val error: DOMException?(source)

The error read-only property of the IDBTransaction interface returns the type of error when there is an unsuccessful transaction.

MDN Reference