Documentation / @zerotal/orm / index / 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
Properties
code
readonlycode:string
Defined in: packages/core/src/errors/ZerotalError.ts:18
Inherited from
status
readonlystatus:number=500
Defined in: packages/core/src/errors/ZerotalError.ts:19
Inherited from
context?
readonlyoptionalcontext?:Record<string,unknown>
Defined in: packages/core/src/errors/ZerotalError.ts:20