AuviousError
@auvious/common / Exports / AuviousError
Class: AuviousError
Hierarchy
Error
↳
AuviousError
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new AuviousError(_raw?
)
Parameters
Name | Type |
---|---|
_raw | any |
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
Type declaration
▸ (err
, stackTraces
): any
Optional override for formatting stack traces
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Parameters
Name | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
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
Name | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Error.captureStackTrace
create
▸ Static
create(message
, code?
, status?
): AuviousError
Parameters
Name | Type | Default value |
---|---|---|
message | string | undefined |
code | string | AuviousErrors | AuviousErrors.UNKNOWN |
status | string | "UNKNOWN" |