Skip to content

breeze-client / EntityError

Interface: EntityError ​

Defined in: src/manager/entity-manager.ts:186

Shape of an error on a specific entity. Part of a SaveError

Properties ​

custom? ​

optional custom?: any

Defined in: src/manager/entity-manager.ts:203

Whatever extra information the server attached to the error. Undefined for client-side errors.


entity ​

entity: Entity | null

Defined in: src/manager/entity-manager.ts:189

The entity the error is about. null when the server named an entity that is not in this manager's cache.


errorMessage ​

errorMessage: string

Defined in: src/manager/entity-manager.ts:195

The error message.


errorName ​

errorName: string

Defined in: src/manager/entity-manager.ts:193

What kind of error this is. From the server, the name it gave the error, such as "ConcurrencyError"; from client-side validation, the validator's name, or the error's key if it was added without a validator.


isServerError ​

isServerError: boolean

Defined in: src/manager/entity-manager.ts:200

true for an error the server reported, false for one from client-side validation.


propertyName ​

propertyName: string

Defined in: src/manager/entity-manager.ts:198

The client-side name of the property the error is about; empty or null when it is about the whole entity.

Released under the MIT License.