Skip to main content

AuviousError

@auvious/common / Exports / AuviousError

Class: AuviousError

Hierarchy

  • Error

    AuviousError

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new AuviousError(_raw?)

Parameters

NameType
_rawany

Overrides

Error.constructor

Properties

_raw

_raw: any


code

code: 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

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

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

Static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

Error.captureStackTrace


create

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

Parameters

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

Returns

AuviousError