Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AppError

You can use AppError (or a subclass thereof) to throw coded errors from your handlers.

Hierarchy

  • CodedError
    • AppError

Index

Constructors

constructor

  • new AppError(code: string | null, message: string): AppError
  • Parameters

    • code: string | null
    • message: string

    Returns AppError

Properties

code

code: string

code_prefix

code_prefix: string = "APP_"

message

message: string

name

name: string

Optional processExitCode

processExitCode: ExitCode

Optional stack

stack: undefined | string

Methods

Static fromError

  • fromError(e: any): CodedError
  • Parameters

    • e: any

    Returns CodedError

Generated using TypeDoc