Huggingface.js documentation

クラス: InferenceClientRoutingError

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

クラス: InferenceClientRoutingError

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

階層

コンストラクタ

constructor

• new InferenceClientRoutingError(message): InferenceClientRoutingError

パラメータ

名前型
messagestring

返り値

InferenceClientRoutingError

オーバーライド

InferenceClientError.constructor

定義場所

inference/src/errors.ts:21

プロパティ

原因

• Optional cause: unknown

継承元

InferenceClientErrorのcause

定義場所

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


メッセージ

• message: string

継承元

InferenceClientError の message

定義場所

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


名前

• name: string

継承元

InferenceClientError.name

定義場所

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


スタック

• Optional スタック: string

継承元

InferenceClientError.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

継承元

InferenceClientError.prepareStackTrace

定義場所

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


stackTraceLimit

▪ Static stackTraceLimit: number

継承元

InferenceClientError。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

継承元

InferenceClientError。captureStackTrace

定義場所

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

Update on GitHub