메인 콘텐츠로 건너뛰기

클래스: MCPAuthAuthServerError

원격 인가 (Authorization) 서버에 문제가 있을 때 발생하는 오류입니다.

상속​

생성자​

생성자​

new MCPAuthAuthServerError(code: AuthServerErrorCode, cause?: unknown): MCPAuthAuthServerError;

매개변수​

code​

AuthServerErrorCode

cause?​

unknown

반환값​

MCPAuthAuthServerError

오버라이드​

MCPAuthError.constructor

프로퍼티​

cause?​

readonly optional cause: unknown;

상속됨​

MCPAuthError.cause


code​

readonly code: AuthServerErrorCode;

스네이크 케이스 형식의 오류 코드입니다.

상속됨​

MCPAuthError.code


message​

message: string;

상속됨​

MCPAuthError.message


name​

name: string = 'MCPAuthAuthServerError';

오버라이드​

MCPAuthError.name


stack?​

optional stack: string;

상속됨​

MCPAuthError.stack


prepareStackTrace()?​

static optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any;

스택 트레이스 포맷팅을 위한 선택적 오버라이드

매개변수​

err​

Error

stackTraces​

CallSite[]

반환값​

any

참고​

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

상속됨​

MCPAuthError.prepareStackTrace


stackTraceLimit​

static stackTraceLimit: number;

상속됨​

MCPAuthError.stackTraceLimit

메서드​

toJson()​

toJson(showCause: boolean): Record<string, unknown>;

오류를 HTTP 응답에 적합한 JSON 형식으로 변환합니다.

매개변수​

showCause​

boolean = false

JSON 응답에 오류의 원인을 포함할지 여부입니다. 기본값은 false입니다.

반환값​

Record<string, unknown>

상속됨​

MCPAuthError.toJson


captureStackTrace()​

static captureStackTrace(targetObject: object, constructorOpt?: Function): void;

대상 객체에 .stack 프로퍼티를 생성합니다

매개변수​

targetObject​

object

constructorOpt?​

Function

반환값​

void

상속됨​

MCPAuthError.captureStackTrace