Represents an error result received from a TP-Link device.

Where response err_code != 0.

Hierarchy

  • Error
    • ResponseError

Constructors

  • Parameters

    • message: string
    • response: string
    • command: string

      command sent to device

    • modules: string[] = []

      array of module names that returned with errors.

    • methods: string[] = []

      array of method names (format: ${moduleName}.${methodName}) that returned with errors.

    Returns ResponseError

Properties

cause?: unknown
command: string

command sent to device

message: string
methods: string[] = []

array of method names (format: ${moduleName}.${methodName}) that returned with errors.

modules: string[] = []

array of module names that returned with errors.

name: string
response: string
stack: "" = ''

Set by Error.captureStackTrace

prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc