Skip to content

Documentation / @tenancy-node/db / MigrationFailedError

Class: MigrationFailedError ​

Defined in: db/src/errors.ts:76

Base de todos los errores del paquete. Cada error tiene un code estable (por ejemplo TENANCY_TENANT_NOT_FOUND) que se puede usar en lugar del mensaje.

Los errores de dominio no incluyen detalles de infraestructura; esos van al log.

Extends ​

Constructors ​

Constructor ​

new MigrationFailedError(migration, cause, tenantId?): MigrationFailedError

Defined in: db/src/errors.ts:77

Parameters ​

migration ​

string | undefined

cause ​

unknown

tenantId? ​

string

Returns ​

MigrationFailedError

Overrides ​

TenancyError.constructor

Properties ​

code ​

readonly code: string

Defined in: core/src/domain/errors/tenancy-error.ts:9

Inherited from ​

TenancyError.code


details ​

readonly details: Readonly<Record<string, unknown>> = {}

Defined in: core/src/domain/errors/tenancy-error.ts:11

Inherited from ​

TenancyError.details


migration ​

readonly migration: string | undefined

Defined in: db/src/errors.ts:78

Publicado bajo la licencia MIT.