@ingestkorea/client-sens
Version:
INGESTKOREA SDK Naver Cloud Platform SENS Client for Node.js.
18 lines (17 loc) • 590 B
TypeScript
import { SesnResponseErrorType } from "./SensErrorInfo.js";
type SensClientErrorType = "SDK.AUTH_ERROR" | "SDK.GENERAL_ERROR" | "SDK.REQUEST_ERROR" | "SDK.UNKNOWN_ERROR";
export type SensErrorType = SesnResponseErrorType | SensClientErrorType;
export interface SensErrorInput {
code: number;
type: SensErrorType;
message: string;
errors?: string[];
}
export declare class SensError extends Error {
readonly code: number;
readonly type: SensErrorType;
readonly errors: string[];
readonly timestamp: string;
constructor(info: SensErrorInput);
}
export {};