Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TcException

Main Exception Class of the tc-context library. Every exception thrown from the tc-context library derives from this Class.

Event TcException stores the TcContext from which it originated.

Hierarchy

Index

Constructors

Properties

Accessors

Constructors

constructor

  • Construct a TcException with the TcContext, from which it originated, and the error message

    Parameters

    • context: TcContext

      The TcContext from which the exception originated

    • message: string

      Error message

    Returns TcException

  • Construct a TcException with the TcContext, from which it originated, and the error message, as well as any parent Error that can provide additional information

    Parameters

    • context: TcContext

      The TcContext from which the exception originated

    • message: string

      Error message

    • parent: Error

      The parent Error of this TcException

    Returns TcException

  • Construct a TcException with the TcContext, from which it originated, and the error message, as well as additional data associated with this error

    Parameters

    • context: TcContext

      The TcContext from which the exception originated

    • message: string

      Error message

    • data: any

      The Data, which is associated with this TcException

    Returns TcException

  • Construct a TcException with the TcContext, from which it originated, and the error message, as well as both the parent Error and additional Error Data

    Parameters

    • context: TcContext

      The TcContext from which the exception originated

    • message: string

      Error message

    • parent: Error

      The parent Error of this TcException

    • data: any

      The Data, which is associated with this TcException

    Returns TcException

Properties

message

message: string

name

name: string

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Accessors

context

data

  • get data(): any | undefined

parent

  • get parent(): Error | undefined

Generated using TypeDoc