Huggingface.js documentation

Classe : InvalidApiResponseFormatError

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Classe : InvalidApiResponseFormatError

Hiérarchie

  • Error

    ↳ InvalidApiResponseFormatError

Constructeurs

constructor

• nouvelle InvalidApiResponseFormatError(message?) : InvalidApiResponseFormatError

Paramètres

NomType
message?string

Retourne

InvalidApiResponseFormatError

Hérité de

Error.constructor

Défini dans

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

• nouvelle InvalidApiResponseFormatError(message?, options?) : InvalidApiResponseFormatError

Paramètres

NomType
message?string
options?ErrorOptions

Retourne

InvalidApiResponseFormatError

Hérité de

Error.constructor

Défini dans

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

Propriétés

cause

• Optional cause : unknown

Hérité de

Error.cause

Défini dans

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


message

• message : string

Hérité de

Error.message

Défini dans

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


name

• name : string

Hérité de

Error.name

Défini dans

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


stack

• Optional pile : string

Hérité de

Error.stack

Défini dans

packages/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

Substitution facultative pour le formatage des traces d'appel

See

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

Déclaration de type

▸ (err, stackTraces): any

Paramètres
NomType
errError
stackTracesCallSite[]
Retourne

any

Hérité de

Error.prepareStackTrace

Défini dans

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


stackTraceLimit

▪ Static stackTraceLimit : number

Hérité de

Error.stackTraceLimit

Défini dans

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

Méthodes

captureStackTrace

▸ captureStackTrace(targetObject, constructorOpt?) : void

Créer la propriété .stack sur un objet cible

Paramètres

NomType
targetObjectobject
constructorOpt?Function

Retourne

void

Hérité de

Error.captureStackTrace

Défini dans

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

Update on GitHub