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