Huggingface.js 文档
类: InferenceOutputError
并获取增强的文档体验
开始使用
类: InferenceOutputError
继承关系
TypeError↳
InferenceOutputError
构造函数
constructor
• new InferenceOutputError(message): InferenceOutputError
参数
| 名称 | 类型 |
|---|---|
message | string |
返回值
覆盖
TypeError.constructor
定义于
inference/src/lib/InferenceOutputError.ts:2
属性
原因
• 可选 cause: unknown
继承自
TypeError.cause
定义于
doc-internal/node_modules/.pnpm/typescript@5.4.2/node_modules/typescript/lib/lib.es2022.error.d.ts:24
消息
• message: string
继承自
TypeError.message
定义于
doc-internal/node_modules/.pnpm/typescript@5.4.2/node_modules/typescript/lib/lib.es5.d.ts:1077
名称
• name: string
继承自
TypeError.name
定义于
doc-internal/node_modules/.pnpm/typescript@5.4.2/node_modules/typescript/lib/lib.es5.d.ts:1076
堆栈
• 可选 stack: string
继承自
TypeError.stack
定义于
doc-internal/node_modules/.pnpm/typescript@5.4.2/node_modules/typescript/lib/lib.es5.d.ts:1078
prepareStackTrace
▪ Static 可选 prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any
用于格式化堆栈跟踪的可选覆盖
参见
https://v8.node.org.cn/docs/stack-trace-api#customizing-stack-traces
类型声明
▸ (err, stackTraces): any
参数
| 名称 | 类型 |
|---|---|
err | Error |
stackTraces | CallSite[] |
返回值
any
继承自
TypeError.prepareStackTrace
定义于
inference/node_modules/.pnpm/@types+node@18.13.0/node_modules/@types/node/globals.d.ts:11
stackTraceLimit
▪ Static stackTraceLimit: number
继承自
TypeError.stackTraceLimit
定义于
inference/node_modules/.pnpm/@types+node@18.13.0/node_modules/@types/node/globals.d.ts:13
方法
captureStackTrace
▸ captureStackTrace(targetObject, constructorOpt?): void
在目标对象上创建 .stack 属性
参数
| 名称 | 类型 |
|---|---|
targetObject | object |
constructorOpt? | Function |
返回值
void
继承自
TypeError.captureStackTrace
定义于
inference/node_modules/.pnpm/@types+node@18.13.0/node_modules/@types/node/globals.d.ts:4
< > 在 GitHub 上更新