stringifyError
约 72 字小于 1 分钟
2025-10-13
Karin API Docs / stringifyError
函数: stringifyError()
stringifyError(
error?):object
定义于: packages/core/src/utils/system/error.ts:6
参数
error?
错误对象
Error | null
返回
object
拆解后的错误对象
message
message:
string|undefined
name
name:
string|undefined
stack
stack:
string|undefined
Description
拆解错误对象 用于JSON序列化
