DatabaseMigrationError
Defined in: core/src/error/error.ts:183
Thrown when a database’s migrations could not be brought up to date.
A migration failure leaves the schema partly built, so every later query fails
for a reason that has nothing to do with its own cause. The originating error is
kept as cause, and the migration that broke named where one could be
identified.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DatabaseMigrationError( databaseId, migrationName, cause): DatabaseMigrationError;Defined in: core/src/error/error.ts:187
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
databaseId |
string |
migrationName |
string | undefined |
cause |
unknown |
Returns
Section titled “Returns”DatabaseMigrationError
Overrides
Section titled “Overrides”Properties
Section titled “Properties”databaseId
Section titled “databaseId”readonly databaseId: string;Defined in: core/src/error/error.ts:184
migrationName?
Section titled “migrationName?”readonly optional migrationName?: string;Defined in: core/src/error/error.ts:185