Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Error

Hierarchy

Index

Constructors

constructor

  • new Error(ErrorMessage: string, ErrorCode?: ErrorClass, Id?: number): Error

Properties

ErrorCode

ErrorCode: ErrorClass

ErrorMessage

ErrorMessage: string

Id

Id: number

Accessors

SchemaVersion

  • get SchemaVersion(): number

Type

  • get Type(): string
  • Returns the message type name

    Usually, the message type name will be the same as the message class constructor, so the constructor name is used by default. However, in instances where a message has different versions (i.e. DeviceAddedVersion0 and DeviceAddedVersion1), we will need to override this to set the message name.

    Returns string

Methods

DowngradeMessage

getType

  • getType(): string
  • [DEPRECATED] Function version of the this.Type getter

    Returns string

toJSON

  • toJSON(): string

toProtocolFormat

  • toProtocolFormat(): object

Generated using TypeDoc