Skip to main content

Class: OAuthHttpException

api-oauth/OAuthHttpException.OAuthHttpException

Hierarchy

  • HttpException

    OAuthHttpException

Constructors

constructor

new OAuthHttpException(error_type, error_message)

Parameters

NameType
error_typestring
error_messagestring

Overrides

HttpException.constructor

Defined in

gropius-login-service/backend/src/api-oauth/OAuthHttpException.ts:4

Properties

cause

cause: unknown

Inherited from

HttpException.cause

Defined in

gropius-login-service/backend/node_modules/@nestjs/common/exceptions/http.exception.d.ts:57


error_message

Readonly error_message: string

Defined in

gropius-login-service/backend/src/api-oauth/OAuthHttpException.ts:6


error_type

Readonly error_type: string

Defined in

gropius-login-service/backend/src/api-oauth/OAuthHttpException.ts:5


message

message: string

Inherited from

HttpException.message

Defined in

website/node_modules/typescript/lib/lib.es5.d.ts:1068


name

name: string

Inherited from

HttpException.name

Defined in

website/node_modules/typescript/lib/lib.es5.d.ts:1067


stack

Optional stack: string

Inherited from

HttpException.stack

Defined in

website/node_modules/typescript/lib/lib.es5.d.ts:1069


prepareStackTrace

Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Type declaration

▸ (err, stackTraces): any

Optional override for formatting stack traces

Parameters
NameType
errError
stackTracesCallSite[]
Returns

any

See

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

Inherited from

HttpException.prepareStackTrace

Defined in

gropius-login-service/backend/node_modules/@types/node/globals.d.ts:28


stackTraceLimit

Static stackTraceLimit: number

Inherited from

HttpException.stackTraceLimit

Defined in

gropius-login-service/backend/node_modules/@types/node/globals.d.ts:30

Methods

getResponse

getResponse(): string | object

Returns

string | object

Inherited from

HttpException.getResponse

Defined in

gropius-login-service/backend/node_modules/@nestjs/common/exceptions/http.exception.d.ts:67


getStatus

getStatus(): number

Returns

number

Inherited from

HttpException.getStatus

Defined in

gropius-login-service/backend/node_modules/@nestjs/common/exceptions/http.exception.d.ts:68


initCause

initCause(): void

Configures error chaining support

Returns

void

See

Inherited from

HttpException.initCause

Defined in

gropius-login-service/backend/node_modules/@nestjs/common/exceptions/http.exception.d.ts:64


initMessage

initMessage(): void

Returns

void

Inherited from

HttpException.initMessage

Defined in

gropius-login-service/backend/node_modules/@nestjs/common/exceptions/http.exception.d.ts:65


initName

initName(): void

Returns

void

Inherited from

HttpException.initName

Defined in

gropius-login-service/backend/node_modules/@nestjs/common/exceptions/http.exception.d.ts:66


captureStackTrace

Static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

HttpException.captureStackTrace

Defined in

gropius-login-service/backend/node_modules/@types/node/globals.d.ts:21


createBody

Static createBody(nil, message, statusCode): HttpExceptionBody

Parameters

NameType
nil""
messageHttpExceptionBodyMessage
statusCodenumber

Returns

HttpExceptionBody

Inherited from

HttpException.createBody

Defined in

gropius-login-service/backend/node_modules/@nestjs/common/exceptions/http.exception.d.ts:69

Static createBody(message, error, statusCode): HttpExceptionBody

Parameters

NameType
messageHttpExceptionBodyMessage
errorstring
statusCodenumber

Returns

HttpExceptionBody

Inherited from

HttpException.createBody

Defined in

gropius-login-service/backend/node_modules/@nestjs/common/exceptions/http.exception.d.ts:70

Static createBody<Body>(custom): Body

Type parameters

NameType
Bodyextends Record<string, unknown>

Parameters

NameType
customBody

Returns

Body

Inherited from

HttpException.createBody

Defined in

gropius-login-service/backend/node_modules/@nestjs/common/exceptions/http.exception.d.ts:71


extractDescriptionAndOptionsFrom

Static extractDescriptionAndOptionsFrom(descriptionOrOptions): DescriptionAndOptions

Utility method used to extract the error description and httpExceptionOptions from the given argument. This is used by inheriting classes to correctly parse both options.

Parameters

NameType
descriptionOrOptionsstring | HttpExceptionOptions

Returns

DescriptionAndOptions

the error description and the httpExceptionOptions as an object.

Inherited from

HttpException.extractDescriptionAndOptionsFrom

Defined in

gropius-login-service/backend/node_modules/@nestjs/common/exceptions/http.exception.d.ts:79


getDescriptionFrom

Static getDescriptionFrom(descriptionOrOptions): string

Parameters

NameType
descriptionOrOptionsstring | HttpExceptionOptions

Returns

string

Inherited from

HttpException.getDescriptionFrom

Defined in

gropius-login-service/backend/node_modules/@nestjs/common/exceptions/http.exception.d.ts:72


getHttpExceptionOptionsFrom

Static getHttpExceptionOptionsFrom(descriptionOrOptions): HttpExceptionOptions

Parameters

NameType
descriptionOrOptionsstring | HttpExceptionOptions

Returns

HttpExceptionOptions

Inherited from

HttpException.getHttpExceptionOptionsFrom

Defined in

gropius-login-service/backend/node_modules/@nestjs/common/exceptions/http.exception.d.ts:73