ChatError class

Error thrown from failed StatefulChatClient methods.

Extends

Error

Constructors

ChatError(ChatErrorTarget, Error, Date)

Properties

innerError

Error thrown by the failed SDK method.

target

The API method target that failed.

timestamp

Timestamp added to the error by the stateful layer.

Inherited Properties

message
name
prepareStackTrace

Optional override for formatting stack traces

See https://v8.dev/docs/stack-trace-api#customizing-stack-traces

stack
stackTraceLimit

Inherited Methods

captureStackTrace(object, Function)

Create .stack property on a target object

Constructor Details

ChatError(ChatErrorTarget, Error, Date)

new ChatError(target: ChatErrorTarget, innerError: Error, timestamp?: Date)

Parameters

innerError

Error

timestamp

Date

Property Details

innerError

Error thrown by the failed SDK method.

innerError: Error

Property Value

Error

target

The API method target that failed.

target: ChatErrorTarget

Property Value

timestamp

Timestamp added to the error by the stateful layer.

timestamp: Date

Property Value

Date

Inherited Property Details

message

message: string

Property Value

string

Inherited From Error.message

name

name: string

Property Value

string

Inherited From Error.name

prepareStackTrace

Optional override for formatting stack traces

See https://v8.dev/docs/stack-trace-api#customizing-stack-traces

static prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Property Value

(err: Error, stackTraces: CallSite[]) => any

Inherited From Error.prepareStackTrace

stack

stack?: string

Property Value

string

Inherited From Error.stack

stackTraceLimit

static stackTraceLimit: number

Property Value

number

Inherited From Error.stackTraceLimit

Inherited Method Details

captureStackTrace(object, Function)

Create .stack property on a target object

static function captureStackTrace(targetObject: object, constructorOpt?: Function)

Parameters

targetObject

object

constructorOpt

Function

Inherited From Error.captureStackTrace