Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Exception

This class represents the logical errors detected by programmer and is thrown when one of them occurs.

Hierarchy

  • Error
    • Exception

Constructors

Properties

Methods

Constructors

constructor

  • new Exception(emitter: string, code: string, message?: string, origin?: any): Exception
  • Parameters

    • emitter: string

      Exception emitter.

    • code: string

      Error code.

    • Optional message: string

      Error message.

    • Optional origin: any

      Error origin.

    Returns Exception

Properties

Readonly code

code: string

General error code that briefly explains error condition.

Readonly emitter

emitter: string

Module that emitted the Exception.

Optional Readonly origin

origin: any

Error origin. Might contain a nested {@link Error} or additional data that caused this error.

Methods

toString

  • toString(): string
  • Format Exception into string.

    Returns string