Skip to main content

@auvious/common / AuviousError

Class: AuviousError

Hierarchy​

  • Error

    ↳ AuviousError

Table of contents​

Constructors​

Properties​

Accessors​

Methods​

Constructors​

constructor​

• new AuviousError(_raw?): AuviousError

Parameters​

NameType
_rawany

Returns​

AuviousError

Overrides​

Error.constructor

Properties​

_raw​

• _raw: any


code​

• code: string


error_description​

• error_description: string


error_message​

• error_message: string


message​

• message: string

Overrides​

Error.message


name​

• name: string

Inherited from​

Error.name


stack​

• Optional stack: string

Inherited from​

Error.stack


status​

• status: string


prepareStackTrace​

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

Optional override for formatting stack traces

See

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

Type declaration​

▸ (err, stackTraces): any

Parameters​
NameType
errError
stackTracesCallSite[]
Returns​

any

Inherited from​

Error.prepareStackTrace


stackTraceLimit​

▪ Static stackTraceLimit: number

Inherited from​

Error.stackTraceLimit

Accessors​

error​

• get error(): boolean

Returns​

boolean

Methods​

toJSON​

▸ toJSON(): any

Returns​

any


toString​

▸ toString(): string

Returns​

string


captureStackTrace​

▸ captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters​

NameType
targetObjectobject
constructorOpt?Function

Returns​

void

Inherited from​

Error.captureStackTrace


create​

▸ create(message, code?, status?): AuviousError

Parameters​

NameTypeDefault value
messagestringundefined
codestring | AuviousErrorsAuviousErrors.UNKNOWN
statusstring"UNKNOWN"

Returns​

AuviousError