Skip to main content

@webda/coreReadme | API


Class: UpdateConditionFailError

Error with a code

Extends

Constructors

new UpdateConditionFailError(uuid, conditionField, condition)

new UpdateConditionFailError(uuid, conditionField, condition): UpdateConditionFailError

Parameters

uuid: string

conditionField: string

condition: string | Date

Returns

UpdateConditionFailError

Overrides

CodeError.constructor

Source

packages/core/src/stores/store.ts:16

Properties

code

code: string

Inherited from

CodeError.code

Source

packages/core/src/errors.ts:6


message

message: string

Inherited from

CodeError.message

Source

node_modules/typescript/lib/lib.es5.d.ts:1076


name

name: string

Inherited from

CodeError.name

Source

node_modules/typescript/lib/lib.es5.d.ts:1075


stack?

stack?: string

Inherited from

CodeError.stack

Source

node_modules/typescript/lib/lib.es5.d.ts:1077


prepareStackTrace?

static prepareStackTrace?: (err, stackTraces) => any

Optional override for formatting stack traces

Parameters

err: Error

stackTraces: CallSite[]

Returns

any

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from

CodeError.prepareStackTrace

Source

packages/core/node_modules/@types/node/globals.d.ts:11


stackTraceLimit

static stackTraceLimit: number

Inherited from

CodeError.stackTraceLimit

Source

packages/core/node_modules/@types/node/globals.d.ts:13

Methods

getCode()

getCode(): string

Return error code

Returns

string

Inherited from

CodeError.getCode

Source

packages/core/src/errors.ts:21


getResponseCode()

getResponseCode(): number

Http response code

Returns

number

Inherited from

CodeError.getResponseCode

Source

packages/core/src/errors.ts:29


captureStackTrace()

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt?: Function

Returns

void

Inherited from

CodeError.captureStackTrace

Source

packages/core/node_modules/@types/node/globals.d.ts:4