你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ChatError class

从失败的 StatefulChatClient 方法引发的错误。

Extends

Error

构造函数

ChatError(ChatErrorTarget, Error, Date)

属性

innerError

失败的 SDK 方法引发的错误。

target

失败的 API 方法目标。

timestamp

由有状态层添加到错误的时间戳。

继承属性

message
name
prepareStackTrace

设置堆栈跟踪格式的可选替代

请参见https://v8.dev/docs/stack-trace-api#customizing-stack-traces

stack
stackTraceLimit

继承的方法

captureStackTrace(object, Function)

在目标对象上创建 .stack 属性

构造函数详细信息

ChatError(ChatErrorTarget, Error, Date)

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

参数

innerError

Error

timestamp

Date

属性详细信息

innerError

失败的 SDK 方法引发的错误。

innerError: Error

属性值

Error

target

失败的 API 方法目标。

target: ChatErrorTarget

属性值

timestamp

由有状态层添加到错误的时间戳。

timestamp: Date

属性值

Date

继承属性详细信息

message

message: string

属性值

string

继承自 Error.message

name

name: string

属性值

string

继承自 Error.name

prepareStackTrace

设置堆栈跟踪格式的可选替代

请参见https://v8.dev/docs/stack-trace-api#customizing-stack-traces

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

属性值

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

继承自 Error.prepareStackTrace

stack

stack?: string

属性值

string

继承自 Error.stack

stackTraceLimit

static stackTraceLimit: number

属性值

number

继承自 Error.stackTraceLimit

继承的方法详细信息

captureStackTrace(object, Function)

在目标对象上创建 .stack 属性

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

参数

targetObject

object

constructorOpt

Function

继承自 Error.captureStackTrace