Skip to main content

Class: ObjectNotFoundException

exceptions/src.ObjectNotFoundException

Extends

Constructors

new ObjectNotFoundException(entityName, errorCode, rootCause)

new ObjectNotFoundException(entityName, errorCode?, rootCause?): ObjectNotFoundException

Parameters

entityName: string

errorCode?: string

rootCause?: unknown

Returns

ObjectNotFoundException

Overrides

AbstractHttpException.constructor

Source

libs/exceptions/src/lib/exceptions/object-not-found.exception.ts:7

Properties

data

data?: ObjectNotFoundData | ObjectNotFoundData[]

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>

Inherited from

AbstractHttpException.getPresetHeadersValues

Source

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


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