Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ButtplugException

Hierarchy

Index

Constructors

Protected constructor

  • Parameters

    • aMessage: string
    • aErrorClass: ErrorClass
    • Default value aId: number = Messages.SYSTEM_MESSAGE_ID
    • Optional aInner: Error

    Returns ButtplugException

Properties

errorClass

errorClass: ErrorClass = Messages.ErrorClass.ERROR_UNKNOWN

innerError

innerError: Error | undefined

message

message: string

messageId

messageId: number | undefined

name

name: string

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Accessors

ErrorClass

  • Returns ErrorClass

Id

  • get Id(): number | undefined
  • Returns number | undefined

InnerException

  • get InnerException(): Error | undefined
  • Returns Error | undefined

Methods

Static FromError

Static LogAndError

  • LogAndError<T>(aConstructor: object, aLogger: ButtplugLogger, aMessage: string, aId?: number): T
  • Type parameters

    Parameters

    • aConstructor: object
    • aLogger: ButtplugLogger
    • aMessage: string
    • Default value aId: number = Messages.SYSTEM_MESSAGE_ID

    Returns T

Generated using TypeDoc