Huggingface.js 文件

類別:InvalidApiResponseFormatError

Hugging Face's logo
加入 Hugging Face 社群

並獲得增強的文件體驗

開始使用

類:InvalidApiResponseFormatError

繼承關係

  • 錯誤

    InvalidApiResponseFormatError

建構函式

建構函式

new InvalidApiResponseFormatError(message?): InvalidApiResponseFormatError

引數

名稱 型別
訊息? 字串

返回

InvalidApiResponseFormatError

繼承自

Error.constructor

定義於

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

new InvalidApiResponseFormatError(message?, options?): InvalidApiResponseFormatError

引數

名稱 型別
訊息? 字串
選項? ErrorOptions

返回

InvalidApiResponseFormatError

繼承自

Error.constructor

定義於

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

屬性

原因

可選 cause: unknown

繼承自

Error.cause

定義於

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


訊息

message: string

繼承自

Error.message

定義於

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


名稱

name: string

繼承自

Error.name

定義於

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


堆疊

可選 stack: string

繼承自

Error.stack

定義於

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


prepareStackTrace

靜態 可選 prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

用於格式化堆疊跟蹤的可選重寫

請參閱

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

型別宣告

▸ (err, stackTraces): any

引數
名稱 型別
錯誤 錯誤
堆疊跟蹤 CallSite[]
返回

任何

繼承自

Error.prepareStackTrace

定義於

node_modules/.pnpm/@types+node@22.14.1/node_modules/@types/node/globals.d.ts:143


stackTraceLimit

靜態 stackTraceLimit: number

繼承自

Error.stackTraceLimit

定義於

node_modules/.pnpm/@types+node@22.14.1/node_modules/@types/node/globals.d.ts:145

方法

captureStackTrace

captureStackTrace(targetObject, constructorOpt?): void

在目標物件上建立 .stack 屬性

引數

名稱 型別
目標物件 物件
constructorOpt? 函式

返回

繼承自

Error.captureStackTrace

定義於

node_modules/.pnpm/@types+node@22.14.1/node_modules/@types/node/globals.d.ts:136

< > 在 GitHub 上更新

© . This site is unofficial and not affiliated with Hugging Face, Inc.