Huggingface.js documentation

클래스: InferenceClientHubApiError

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

클래스: InferenceClientHubApiError

허브에 대한 HTTP 요청이 API 문제 또는 서버 오류 등으로 인해 실패할 때 발생합니다.

계층 구조

  • InferenceClientHttpRequestError

    ↳ InferenceClientHubApiError

생성자

constructor

• new InferenceClientHubApiError(message, httpRequest, httpResponse): InferenceClientHubApiError

매개변수

이름유형
messagestring
httpRequestHttpRequest
httpResponseHttpResponse

반환

InferenceClientHubApiError

오버라이드

InferenceClientHttpRequestError.constructor

정의 위치

inference/src/errors.ts:75

속성

원인

• Optional cause: unknown

다음에서 상속

InferenceClientHttpRequestError.cause

정의 위치

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


httpRequest

• httpRequest: HttpRequest

다음에서 상속

InferenceClientHttpRequestError.httpRequest

정의 위치

inference/src/errors.ts:41


httpResponse

• httpResponse: HttpResponse

다음에서 상속

InferenceClientHttpRequestError.httpResponse

정의 위치

inference/src/errors.ts:42


메시지

• message: string

다음에서 상속

InferenceClientHttpRequestError.message

정의 위치

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


이름

• name: string

다음에서 상속

InferenceClientHttpRequestError.name

정의 위치

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


스택

• Optional 스택: string

다음에서 상속

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

다음에서 상속

InferenceClientHttpRequestError.prepareStackTrace

정의 위치

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


stackTraceLimit

▪ Static stackTraceLimit: number

다음에서 상속

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

다음에서 상속

InferenceClientHttpRequestError.captureStackTrace

정의 위치

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

Update on GitHub