UNPKG

central-error-codes

Version:

Centralized error codes for SDK

118 lines (117 loc) 3.89 kB
{ "P2_CONTEXT_RESET_ERROR": { "errorCode": "P2_CONTEXT_RESET_ERROR", "statusCode": 500, "errorMessage": "Error resetting context" }, "P2_DATASET_GENERATION_ERROR": { "errorCode": "P2_DATASET_GENERATION_ERROR", "statusCode": 500, "errorMessage": "Dataset generation failed" }, "P2_GOLDENS_EXTRACTION_ERROR": { "errorCode": "P2_GOLDENS_EXTRACTION_ERROR", "statusCode": 500, "errorMessage": "Error extracting golden data" }, "P2_SYNTHESIZER_INIT_ERROR": { "errorCode": "P2_SYNTHESIZER_INIT_ERROR", "statusCode": 500, "errorMessage": "Synthesizer initialization failed" }, "P2_GOLDENS_GENERATION_ERROR": { "errorCode": "P2_GOLDENS_GENERATION_ERROR", "statusCode": 500, "errorMessage": "Error generating goldens" }, "P2_CONTEXT_GOLDEN_ERROR": { "errorCode": "P2_CONTEXT_GOLDEN_ERROR", "statusCode": 500, "errorMessage": "Context-related golden extraction error" }, "P2_PROCESS_GOLDEN_ERROR": { "errorCode": "P2_PROCESS_GOLDEN_ERROR", "statusCode": 500, "errorMessage": "Error processing golden data" }, "P3_GENERATE_ERROR": { "errorCode": "P3_GENERATE_ERROR", "statusCode": 500, "errorMessage": "Generation process failed" }, "P3_ASYNC_GENERATE_ERROR": { "errorCode": "P3_ASYNC_GENERATE_ERROR", "statusCode": 500, "errorMessage": "Asynchronous generation failed" }, "P3_GET_CHAT_MODEL_ERROR": { "errorCode": "P3_GET_CHAT_MODEL_ERROR", "statusCode": 500, "errorMessage": "Failed to retrieve chat model" }, "P3_GET_AZURE_MODEL_ERROR": { "errorCode": "P3_GET_AZURE_MODEL_ERROR", "statusCode": 500, "errorMessage": "Failed to retrieve Azure model" }, "P3_GET_LOCAL_MODEL_ERROR": { "errorCode": "P3_GET_LOCAL_MODEL_ERROR", "statusCode": 500, "errorMessage": "Failed to retrieve local model" }, "P3_EMBED_TEXT_ERROR": { "errorCode": "P3_EMBED_TEXT_ERROR", "statusCode": 500, "errorMessage": "Error embedding text" }, "P3_A_EMBED_TEXT_ERROR": { "errorCode": "P3_A_EMBED_TEXT_ERROR", "statusCode": 500, "errorMessage": "Error embedding text asynchronously" }, "P3_GET_EMBEDDING_MODEL_ERROR": { "errorCode": "P3_GET_EMBEDDING_MODEL_ERROR", "statusCode": 500, "errorMessage": "Failed to retrieve embedding model" }, "P3_MINIO_BUCKET_ERROR": { "errorCode": "P3_MINIO_BUCKET_ERROR", "statusCode": 500, "errorMessage": "MinIO bucket access error" }, "P3_MINIO_TMP_DIR_ERROR": { "errorCode": "P3_MINIO_TMP_DIR_ERROR", "statusCode": 500, "errorMessage": "Temporary directory creation failed" }, "P3_MINIO_LIST_ERROR": { "errorCode": "P3_MINIO_LIST_ERROR", "statusCode": 500, "errorMessage": "Error listing files in MinIO" }, "P3_MINIO_DOWNLOAD_ERROR": { "errorCode": "P3_MINIO_DOWNLOAD_ERROR", "statusCode": 500, "errorMessage": "Error downloading file from MinIO" }, "P3_MINIO_FILE_ERROR": { "errorCode": "P3_MINIO_FILE_ERROR", "statusCode": 500, "errorMessage": "File processing error in MinIO" }, "P3_MINIO_DELETE_ERROR": { "errorCode": "P3_MINIO_DELETE_ERROR", "statusCode": 500, "errorMessage": "Error deleting files from MinIO" }, "P3_SYNTHESIS_ERROR": { "errorCode": "P3_SYNTHESIS_ERROR", "statusCode": 500, "errorMessage": "Synthesis process failed" }, "P2_LLM_OUTPUT_ERROR": { "errorCode": "P2_LLM_OUTPUT_ERROR", "statusCode": 500, "errorMessage": "LLM output processing error" } }