Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TcComException

Exception Class, for every Error produced by the TcCom Object

Will also store the TcCom, that threw the exception originally

Hierarchy

Index

Constructors

Properties

Accessors

Constructors

constructor

  • Construct a TcBindingException with the TcContext, from which it originated, the TcCom, which raised it and the error message

    Parameters

    • context: TcContext

      The TcContext from which the exception originated

    • sender: TcCom

      The TcCom from which the exception originated

    • message: string

      Error message

    Returns TcComException

  • Construct a TcException with the TcCom, 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

    • sender: TcCom

      The TcCom from which the exception originated

    • message: string

      Error message

    • parent: Error

      The parent Error of this TcException

    Returns TcComException

  • Construct a TcException with the TcCom, 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

    • sender: TcCom

      The TcCom from which the exception originated

    • message: string

      Error message

    • data: any

      The Data, which is associated with this TcException

    Returns TcComException

  • Construct a TcException with the TcCom, 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

    • sender: TcCom

      The TcCom 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 TcComException

Properties

message

message: string

name

name: string

Optional stack

stack: undefined | string

Accessors

context

data

  • get data(): any | undefined

parent

  • get parent(): Error | undefined

sender

Generated using TypeDoc