Skip to main content
zerotal

Documentation


Documentation / zerotal / orm / MigrationError

Class: MigrationError

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

Thrown when a migration's up/down throws, wrapping the underlying error with the failing migration's name for context.

Param

migrationName

The migration that failed.

Param

cause

The underlying error thrown by the migration.

Extends

Constructors

Constructor

new MigrationError(migrationName, cause): MigrationError

Defined in: packages/orm/src/errors/MigrationError.ts:11

Parameters

migrationName

string

cause

Error

Returns

MigrationError

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