Class: AbstractHttpException<ADDITIONAL_DATA
>
exceptions/src.AbstractHttpException
Extended By
ConflictEntityCreationException
GeneralForbiddenException
GeneralInternalServerException
GeneralNotFoundException
GeneralUnauthorizedException
InternalServiceUnavailableHttpException
MissingConfigurationForFeatureException
ObjectNotFoundException
OptimisticLockException
Type parameters
▪ ADDITIONAL_DATA extends object
= object
Constructors
new AbstractHttpException(title, detail, status, data, errorCode, rootCause)
new AbstractHttpException<
ADDITIONAL_DATA
>(title
,detail
,status
,data
?,errorCode
?,rootCause
?):AbstractHttpException
<ADDITIONAL_DATA
>
Parameters
▪ title: string
▪ detail: string
▪ status: number
▪ data?: ADDITIONAL_DATA
| ADDITIONAL_DATA
[]
▪ errorCode?: string
▪ rootCause?: unknown
Returns
AbstractHttpException
<ADDITIONAL_DATA
>
Source
libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:5
Properties
data
data?:
ADDITIONAL_DATA
|ADDITIONAL_DATA
[]
Source
libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:9
detail
detail:
string
Source
libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:7
errorCode
errorCode?:
string
Source
libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:10
rootCause
rootCause?:
unknown
Source
libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:11
status
status:
number
Source
libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:8
title
title:
string
Source
libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:6
Methods
getPresetHeadersValues
getPresetHeadersValues():
Record
<string
,string
>
Returns
Record
<string
, string
>
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
>
Source
libs/exceptions/src/lib/exceptions/abstract-http.exception.ts:14
Generated using typedoc-plugin-markdown and TypeDoc