central-error-codes
Version:
Centralized error codes for SDK
24 lines (23 loc) • 846 B
TypeScript
declare class ErrorCode {
private static errors;
static initialize(): void;
private static loadErrorFile;
static getAllErrorCodes(): Record<string, any>;
/** Returns selected error codes (e.g., GENERIC_ERROR, LLM_GW_ERROR) */
static getError(): {
[ ]: any;
};
/** Returns only GENERIC_ERROR codes */
static getGenericError(): any;
/** Returns only LLM_GW_ERROR codes */
static getLLMGatewayError(): any;
/** Returns only CMS_GW_ERROR codes */
static getCMSGatewayError(): any;
/** Returns only REVIEW_TOOL_ERROR codes */
static getReviewToolKitError(): any;
/** Returns only RECOMMENDATION_TOOL_ERROR codes */
static getRecommendationToolError(): any;
/** Returns only TOOL_SERVER_ERROR codes */
static getToolServerError(): any;
}
export { ErrorCode };