Skip to main content
zerotal

Documentation


Documentation / zerotal / orm / TransactionError

Class: TransactionError

Defined in: packages/orm/src/errors/TransactionError.ts:9

Thrown when a database transaction cannot proceed — e.g. committing or rolling back outside an active transaction, or nesting/savepoint misuse.

Param

message

Human-readable description of the transaction failure.

Extends

Constructors

Constructor

new TransactionError(message): TransactionError

Defined in: packages/orm/src/errors/TransactionError.ts:10

Parameters

message

string

Returns

TransactionError

Overrides

ZerotalError.constructor

Properties

code

readonly code: string

Defined in: packages/core/src/errors/ZerotalError.ts:18

Inherited from

ZerotalError.code


status

readonly status: number = 500

Defined in: packages/core/src/errors/ZerotalError.ts:19

Inherited from

ZerotalError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: packages/core/src/errors/ZerotalError.ts:20

Inherited from

ZerotalError.context