Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents errors that occur during application execution.

Hierarchy

Implements

Index

Constructors

constructor

  • new Exception(message?: string, innerException?: Error, beforeSealing?: function): Exception
  • Initializes a new instance of the Exception class with a specified error message and optionally a reference to the inner exception that is the cause of this exception.

    Parameters

    • Default value message: string = null
    • Default value innerException: Error = null
    • Optional beforeSealing: function

      This delegate is used to allow actions to occur just before this constructor finishes. Since some compilers do not allow the use of 'this' before super.

        • (ex: any): void
        • Parameters

          • ex: any

          Returns void

    Returns Exception

Properties

data

data: IMap<any>

message

message: string

name

name: string

A string representation of the error type. The default is 'Error'.

stack

stack: string

Methods

dispose

  • dispose(): void
  • Clears the data object.

    Returns void

Protected getName

  • getName(): string
  • A string representation of the error type. The default is 'Error'.

    Returns string

toString

  • toString(): string
  • The string representation of the Exception instance.

    Returns string

Protected toStringWithoutBrackets

  • toStringWithoutBrackets(): string
  • Returns string

Generated using TypeDoc