Skip to content

basalt / prisma/src / CrossTenantWriteError

Class: CrossTenantWriteError ​

Defined in: prisma/src/extension.ts:52

Thrown when a write inside a tenant context tries to set the tenant field of an existing row to another tenant (moving the row out of the tenant).

Extends ​

Constructors ​

Constructor ​

> new CrossTenantWriteError(field): CrossTenantWriteError

Defined in: prisma/src/extension.ts:53

Parameters ​

field ​

string

Returns ​

CrossTenantWriteError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

Defined in: core/src/errors.ts:28

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details

Released under the MIT License.