CommunicatorError

class CommunicatorError()

Base error class for all Communicator errors. Extends base Error class as documented [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error).

Preferred:

Constructors


Constructors

CommunicatorError.constructor(message)
Arguments:
  • message (string()) – None

Creates a new CommunicatorError

Return type:CommunicatorError

Properties

CommunicatorError.message
Type:string
CommunicatorError.name
Type:string
CommunicatorError.stack
Type:string optional
CommunicatorError.prepareStackTrace
Type:function optional

Optional override for formatting stack traces

See:https://v8.dev/docs/stack-trace-api#customizing-stack-traces
CommunicatorError.prepareStackTrace(err, stackTraces)
Arguments:
  • err (Error()) – None
  • stackTraces ([CallSite]()) – None
Return type:

any

CommunicatorError.stackTraceLimit
Type:number

Methods

static captureStackTrace

CommunicatorError.captureStackTrace(targetObject[, constructorOpt])
Arguments:
  • targetObject (object()) – None
  • constructorOpt (Function()) – optional None

Create .stack property on a target object

Return type:void