Skip to main content

NotAuthorized

Api Code Documentation / Exports / service/domain/errors/not_authorized / NotAuthorized

service/domain/errors/not_authorized.NotAuthorized

Hierarchy#

Table of contents#

Constructors#

Properties#

Methods#

Constructors#

constructor#

• new NotAuthorized(info, cause?)

Parameters#

NameType
infoInfo
cause?Error

Overrides#

VError.constructor

Defined in#

src/service/domain/errors/not_authorized.ts:33

Properties#

cause#

• cause: () => undefined | Error

Type declaration#

â–¸ (): undefined | Error

Returns#

undefined | Error

Inherited from#

VError.cause

Defined in#

node_modules/@types/verror/index.d.ts:31


message#

• message: string

Inherited from#

VError.message

Defined in#

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


name#

• name: string

Inherited from#

VError.name

Defined in#

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


stack#

• Optional stack: string

Inherited from#

VError.stack

Defined in#

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


VError#

â–ª Static VError: typeof VError

Inherited from#

VError.VError

Defined in#

node_modules/@types/verror/index.d.ts:21


prepareStackTrace#

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

Type declaration#

â–¸ (err, stackTraces): any

Optional override for formatting stack traces

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

Parameters#
NameType
errError
stackTracesCallSite[]
Returns#

any

Inherited from#

VError.prepareStackTrace

Defined in#

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


stackTraceLimit#

â–ª Static stackTraceLimit: number

Inherited from#

VError.stackTraceLimit

Defined in#

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

Methods#

captureStackTrace#

â–¸ Static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters#

NameType
targetObjectobject
constructorOpt?Function

Returns#

void

Inherited from#

VError.captureStackTrace

Defined in#

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


cause#

â–¸ Static cause(err): null | Error

Parameters#

NameType
errError

Returns#

null | Error

Inherited from#

VError.cause

Defined in#

node_modules/@types/verror/index.d.ts:23


errorForEach#

â–¸ Static errorForEach(err, func): void

Parameters#

NameType
errError
func(err: Error) => void

Returns#

void

Inherited from#

VError.errorForEach

Defined in#

node_modules/@types/verror/index.d.ts:29


errorFromList#

â–¸ Static errorFromList<T>(errors): null | T | MultiError

Type parameters#

NameType
Textends Error

Parameters#

NameType
errorsT[]

Returns#

null | T | MultiError

Inherited from#

VError.errorFromList

Defined in#

node_modules/@types/verror/index.d.ts:28


findCauseByName#

â–¸ Static findCauseByName(err, name): null | Error

Parameters#

NameType
errError
namestring

Returns#

null | Error

Inherited from#

VError.findCauseByName

Defined in#

node_modules/@types/verror/index.d.ts:26


fullStack#

â–¸ Static fullStack(err): string

Parameters#

NameType
errError

Returns#

string

Inherited from#

VError.fullStack

Defined in#

node_modules/@types/verror/index.d.ts:25


hasCauseWithName#

â–¸ Static hasCauseWithName(err, name): boolean

Parameters#

NameType
errError
namestring

Returns#

boolean

Inherited from#

VError.hasCauseWithName

Defined in#

node_modules/@types/verror/index.d.ts:27


info#

â–¸ Static info(err): Info

Parameters#

NameType
errError

Returns#

Info

Inherited from#

VError.info

Defined in#

node_modules/@types/verror/index.d.ts:24