Huggingface.js documentation

クラス: InferenceClientError

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

クラス: InferenceClientError

推論関連のすべてのエラーの基底クラス。

階層

コンストラクタ

constructor

• new InferenceClientError(message): InferenceClientError

パラメータ

名前型
messagestring

返り値

InferenceClientError

オーバーライド

Error.constructor

定義場所

inference/src/errors.ts:7

プロパティ

原因

• Optional cause: unknown

継承元

Error.cause

定義場所

doc-internal/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26


メッセージ

• message: string

継承元

Error.message

定義場所

doc-internal/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1077


名前

• name: string

継承元

Error.name

定義場所

doc-internal/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1076


スタック

• Optional スタック: string

継承元

Error.stack

定義場所

doc-internal/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1078


prepareStackTrace

▪ Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

スタックトレースのフォーマットをオーバーライドするための任意のオプション

See

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

型宣言

▸ (err, stackTraces): any

パラメータ
名前型
errError
stackTracesCallSite[]
返り値

any

継承元

Error.prepareStackTrace

定義場所

inference/node_modules/.pnpm/@types+node@18.13.0/node_modules/@types/node/globals.d.ts:11


stackTraceLimit

▪ Static stackTraceLimit: number

継承元

Error.stackTraceLimit

定義場所

inference/node_modules/.pnpm/@types+node@18.13.0/node_modules/@types/node/globals.d.ts:13

メソッド

captureStackTrace

▸ captureStackTrace(targetObject, constructorOpt?): void

ターゲットオブジェクトに.stackプロパティを作成します

パラメータ

名前型
targetObjectobject
constructorOpt?Function

返り値

void

継承元

Error.captureStackTrace

定義場所

inference/node_modules/.pnpm/@types+node@18.13.0/node_modules/@types/node/globals.d.ts:4

Update on GitHub