Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SystemError
    • WebError

Index

Classes

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new WebError(code: number, reason: string): WebError
  • Initializer Constructor.

    Parameters

    • code: number

      Closing code.

    • reason: string

      Reason why.

    Returns WebError

Properties

message

message: string

Optional stack

stack: undefined | string

Accessors

name

  • get name(): string

Methods

code

  • code(): ErrorCode
  • Get error code.

    Returns ErrorCode

    The error code.

toJSON

  • toJSON(): object
  • inheritdoc

    Returns object

what

  • what(): string
  • Get error message.

    Returns string

    The error message.

Generated using TypeDoc