Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XuperError1

Hierarchy

  • Error
    • XuperError1

Index

Constructors

constructor

  • new XuperError1(errorCode: number | string, message?: string, payload?: Error | string, opts?: ErrorOptions): XuperError1

Properties

errorCode

errorCode: number | string

message

message: string

name

name: string

payload

payload: Error | string | undefined

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Methods

Static Private fixStackString

  • fixStackString(stack?: string, char?: string, stackLine?: [number, number]): string
  • Parameters

    • Default value stack: string = ""
    • Default value char: string = ""
    • Optional stackLine: [number, number]

    Returns string

Static template

  • template(errorCode: number | string, message: string, payload?: Error | string, opts?: ErrorOptions): XuperError1