Skip to main content

Class: OptimisticLockException

exceptions/src.OptimisticLockException

Extends​

Constructors​

new OptimisticLockException(currentVersion, rootCause)​

new OptimisticLockException(currentVersion, rootCause?): OptimisticLockException

Parameters​

▪ currentVersion: number

▪ rootCause?: unknown

Returns​

OptimisticLockException

Overrides​

AbstractHttpException.constructor

Source​

libs/exceptions/src/lib/exceptions/optimistic-lock.exception.ts:8

Properties​

currentVersion​

readonly currentVersion: number

Source​

libs/exceptions/src/lib/exceptions/optimistic-lock.exception.ts:9


data​

data?: OptimisticLockData | OptimisticLockData[]

Inherited from​

AbstractHttpException.data

Source​

libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:9


detail​

detail: string

Inherited from​

AbstractHttpException.detail

Source​

libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:7


errorCode​

errorCode?: string

Inherited from​

AbstractHttpException.errorCode

Source​

libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:10


rootCause​

rootCause?: unknown

Inherited from​

AbstractHttpException.rootCause

Source​

libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:11


status​

status: number

Inherited from​

AbstractHttpException.status

Source​

libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:8


title​

title: string

Inherited from​

AbstractHttpException.title

Source​

libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:6

Methods​

getPresetHeadersValues​

getPresetHeadersValues(): Record<string, string>

Returns​

Record<string, string>

Overrides​

AbstractHttpException.getPresetHeadersValues

Source​

libs/exceptions/src/lib/exceptions/optimistic-lock.exception.ts:22


toErrorResponse​

toErrorResponse(requestId, i18nService?): ErrorResponse<object>

Parameters​

▪ requestId: string

▪ i18nService?: I18nContext<Record<string, unknown>> | I18nService<Record<string, unknown>>

Returns​

ErrorResponse<object>

Inherited from​

AbstractHttpException.toErrorResponse

Source​

libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:14


Generated using typedoc-plugin-markdown and TypeDoc