Variable: SYSTEM_ERRORS
const SYSTEM_ERRORS: {
ACCESS_DENIED: "Access denied";
CLEANUP_FAILED: "Cleanup operation failed";
CONFIGURATION_ERROR: "Configuration error";
INITIALIZATION_FAILED: "Initialization failed";
INTERNAL_ERROR: "An internal error occurred";
OPERATION_FAILED_NO_FALLBACK: "Operation failed and no fallback value provided";
OPERATION_NOT_PERMITTED: "Operation not permitted";
OPERATION_TIMEOUT: "Operation timed out";
SERVICE_UNAVAILABLE: "Service temporarily unavailable";
UNKNOWN_ERROR: "Unknown error";
};
Defined in: shared/utils/errorCatalog.ts:171
System-related error messages.
Type Declarationโ
ACCESS_DENIEDโ
readonly ACCESS_DENIED: "Access denied" = "Access denied";
Error when resource access is denied
CLEANUP_FAILEDโ
readonly CLEANUP_FAILED: "Cleanup operation failed" = "Cleanup operation failed";
Error when cleanup operation fails
CONFIGURATION_ERRORโ
readonly CONFIGURATION_ERROR: "Configuration error" = "Configuration error";
Error when configuration is missing or invalid
INITIALIZATION_FAILEDโ
readonly INITIALIZATION_FAILED: "Initialization failed" = "Initialization failed";
Error when initialization fails
INTERNAL_ERRORโ
readonly INTERNAL_ERROR: "An internal error occurred" = "An internal error occurred";
Generic internal server error
OPERATION_FAILED_NO_FALLBACKโ
readonly OPERATION_FAILED_NO_FALLBACK: "Operation failed and no fallback value provided" = "Operation failed and no fallback value provided";
Error when operation fails and no fallback value provided
OPERATION_NOT_PERMITTEDโ
readonly OPERATION_NOT_PERMITTED: "Operation not permitted" = "Operation not permitted";
Error when operation is not permitted
OPERATION_TIMEOUTโ
readonly OPERATION_TIMEOUT: "Operation timed out" = "Operation timed out";
Error when operation times out
SERVICE_UNAVAILABLEโ
readonly SERVICE_UNAVAILABLE: "Service temporarily unavailable" = "Service temporarily unavailable";
Error when service is unavailable
UNKNOWN_ERRORโ
readonly UNKNOWN_ERROR: "Unknown error" = "Unknown error";
Default message when an unknown non-Error value was thrown.
Remarksโ
Error messages for general system operations, infrastructure issues, and application-level errors.