Interface: ErrorCatalogInterface
Defined in: shared/utils/errorCatalog.ts:311
Interface for the error catalog structure.
Propertiesโ
databaseโ
readonly database: {
BACKUP_FAILED: "Backup operation failed";
CONNECTION_FAILED: "Database connection failed";
CONSTRAINT_VIOLATION: "Data constraint violation";
DATABASE_LOCKED: "Database is locked";
DUPLICATE_ENTRY: "Duplicate entry detected";
IMPORT_DATA_INVALID: "Invalid import data format";
QUERY_FAILED: "Database query failed";
RECORD_NOT_FOUND: "Record not found";
RESTORE_FAILED: "Restore operation failed";
TRANSACTION_FAILED: "Database transaction failed";
};
Defined in: shared/utils/errorCatalog.ts:312
BACKUP_FAILEDโ
readonly BACKUP_FAILED: "Backup operation failed" = "Backup operation failed";
Error when backup operation fails
CONNECTION_FAILEDโ
readonly CONNECTION_FAILED: "Database connection failed" = "Database connection failed";
Error when database connection fails
CONSTRAINT_VIOLATIONโ
readonly CONSTRAINT_VIOLATION: "Data constraint violation" = "Data constraint violation";
Error when data constraint is violated
DATABASE_LOCKEDโ
readonly DATABASE_LOCKED: "Database is locked" = "Database is locked";
Error when database is locked
DUPLICATE_ENTRYโ
readonly DUPLICATE_ENTRY: "Duplicate entry detected" = "Duplicate entry detected";
Error when duplicate entry is detected
IMPORT_DATA_INVALIDโ
readonly IMPORT_DATA_INVALID: "Invalid import data format" = "Invalid import data format";
Error when import data format is invalid
QUERY_FAILEDโ
readonly QUERY_FAILED: "Database query failed" = "Database query failed";
Error when query execution fails
RECORD_NOT_FOUNDโ
readonly RECORD_NOT_FOUND: "Record not found" = "Record not found";
Error when record is not found
RESTORE_FAILEDโ
readonly RESTORE_FAILED: "Restore operation failed" = "Restore operation failed";
Error when restore operation fails
TRANSACTION_FAILEDโ
readonly TRANSACTION_FAILED: "Database transaction failed" = "Database transaction failed";
Error when transaction fails
ipcโ
readonly ipc: {
INVALID_RESPONSE_FORMAT: "Invalid IPC response format";
IPC_OPERATION_FAILED: "Operation failed";
VALIDATION_FAILED: "IPC validation failed";
};
Defined in: shared/utils/errorCatalog.ts:313
INVALID_RESPONSE_FORMATโ
readonly INVALID_RESPONSE_FORMAT: "Invalid IPC response format" = "Invalid IPC response format";
Error when IPC response format is invalid
IPC_OPERATION_FAILEDโ
readonly IPC_OPERATION_FAILED: "Operation failed" = "Operation failed";
Error when IPC operation fails
VALIDATION_FAILEDโ
readonly VALIDATION_FAILED: "IPC validation failed" = "IPC validation failed";
Error when IPC validation fails
monitorsโ
readonly monitors: {
CANNOT_REMOVE_LAST: "Cannot remove the last monitor from a site. Use site removal instead.";
CONFIGURATION_INVALID: "Monitor configuration is invalid";
FAILED_TO_ADD: "Failed to add monitor";
FAILED_TO_REMOVE: "Failed to remove monitor";
FAILED_TO_UPDATE: "Failed to update monitor";
FAILED_TO_UPDATE_INTERVAL: "Failed to update check interval";
INVALID_ID: "Monitor ID is invalid or missing";
INVALID_INTERVAL: "Check interval must be a positive number";
INVALID_RETRY_ATTEMPTS: "Retry attempts must be a non-negative number";
INVALID_TIMEOUT: "Timeout must be a positive number";
NOT_FOUND: "Monitor not found";
TYPE_NOT_SUPPORTED: "Monitor type is not supported";
};
Defined in: shared/utils/errorCatalog.ts:314
CANNOT_REMOVE_LASTโ
readonly CANNOT_REMOVE_LAST: "Cannot remove the last monitor from a site. Use site removal instead." = "Cannot remove the last monitor from a site. Use site removal instead.";
Error when trying to remove the last monitor from a site
CONFIGURATION_INVALIDโ
readonly CONFIGURATION_INVALID: "Monitor configuration is invalid" = "Monitor configuration is invalid";
Error when monitor configuration is invalid
FAILED_TO_ADDโ
readonly FAILED_TO_ADD: "Failed to add monitor" = "Failed to add monitor";
Error when attempting to add a monitor fails
FAILED_TO_REMOVEโ
readonly FAILED_TO_REMOVE: "Failed to remove monitor" = "Failed to remove monitor";
Error when attempting to remove a monitor fails
FAILED_TO_UPDATEโ
readonly FAILED_TO_UPDATE: "Failed to update monitor" = "Failed to update monitor";
Error when attempting to update a monitor fails
FAILED_TO_UPDATE_INTERVALโ
readonly FAILED_TO_UPDATE_INTERVAL: "Failed to update check interval" = "Failed to update check interval";
Error when attempting to update check interval fails
INVALID_IDโ
readonly INVALID_ID: "Monitor ID is invalid or missing" = "Monitor ID is invalid or missing";
Error when monitor ID is invalid or missing
INVALID_INTERVALโ
readonly INVALID_INTERVAL: "Check interval must be a positive number" = "Check interval must be a positive number";
Error when check interval is invalid
INVALID_RETRY_ATTEMPTSโ
readonly INVALID_RETRY_ATTEMPTS: "Retry attempts must be a non-negative number" = "Retry attempts must be a non-negative number";
Error when retry attempts value is invalid
INVALID_TIMEOUTโ
readonly INVALID_TIMEOUT: "Timeout must be a positive number" = "Timeout must be a positive number";
Error when timeout value is invalid
NOT_FOUNDโ
readonly NOT_FOUND: "Monitor not found" = "Monitor not found";
Error when a requested monitor cannot be found
TYPE_NOT_SUPPORTEDโ
readonly TYPE_NOT_SUPPORTED: "Monitor type is not supported" = "Monitor type is not supported";
Error when monitor type is not supported
networkโ
readonly network: {
AUTHENTICATION_FAILED: "Authentication failed";
AUTHORIZATION_FAILED: "Authorization failed";
BAD_REQUEST: "Bad request";
CONNECTION_FAILED: "Network connection failed";
CONNECTION_TIMEOUT: "Connection timed out";
DNS_RESOLUTION_FAILED: "DNS resolution failed";
HOST_UNREACHABLE: "Host unreachable";
RESOURCE_NOT_FOUND: "Resource not found";
SERVER_ERROR: "Server error";
SSL_CONNECTION_FAILED: "SSL/TLS connection failed";
};
Defined in: shared/utils/errorCatalog.ts:315
AUTHENTICATION_FAILEDโ
readonly AUTHENTICATION_FAILED: "Authentication failed" = "Authentication failed";
Error when authentication fails
AUTHORIZATION_FAILEDโ
readonly AUTHORIZATION_FAILED: "Authorization failed" = "Authorization failed";
Error when authorization fails
BAD_REQUESTโ
readonly BAD_REQUEST: "Bad request" = "Bad request";
Error when request is malformed
CONNECTION_FAILEDโ
readonly CONNECTION_FAILED: "Network connection failed" = "Network connection failed";
Error when network connection fails
CONNECTION_TIMEOUTโ
readonly CONNECTION_TIMEOUT: "Connection timed out" = "Connection timed out";
Error when connection times out
DNS_RESOLUTION_FAILEDโ
readonly DNS_RESOLUTION_FAILED: "DNS resolution failed" = "DNS resolution failed";
Error when DNS resolution fails
HOST_UNREACHABLEโ
readonly HOST_UNREACHABLE: "Host unreachable" = "Host unreachable";
Error when host cannot be reached
RESOURCE_NOT_FOUNDโ
readonly RESOURCE_NOT_FOUND: "Resource not found" = "Resource not found";
Error when resource is not found
SERVER_ERRORโ
readonly SERVER_ERROR: "Server error" = "Server error";
Error when server returns error
SSL_CONNECTION_FAILEDโ
readonly SSL_CONNECTION_FAILED: "SSL/TLS connection failed" = "SSL/TLS connection failed";
Error when SSL/TLS connection fails
sitesโ
readonly sites: {
ALREADY_EXISTS: "Site with this identifier already exists";
FAILED_TO_ADD: "Failed to add site";
FAILED_TO_CHECK: "Failed to check site";
FAILED_TO_DELETE: "Failed to delete site";
FAILED_TO_UPDATE: "Failed to update site";
INVALID_IDENTIFIER: "Site identifier is invalid or missing";
INVALID_NAME: "Site name is invalid or missing";
NOT_FOUND: "Site not found";
};
Defined in: shared/utils/errorCatalog.ts:316
ALREADY_EXISTSโ
readonly ALREADY_EXISTS: "Site with this identifier already exists" = "Site with this identifier already exists";
Error when site already exists with the same identifier
FAILED_TO_ADDโ
readonly FAILED_TO_ADD: "Failed to add site" = "Failed to add site";
Error when attempting to add a site fails
FAILED_TO_CHECKโ
readonly FAILED_TO_CHECK: "Failed to check site" = "Failed to check site";
Error when site configuration check fails
FAILED_TO_DELETEโ
readonly FAILED_TO_DELETE: "Failed to delete site" = "Failed to delete site";
Error when attempting to delete a site fails
FAILED_TO_UPDATEโ
readonly FAILED_TO_UPDATE: "Failed to update site" = "Failed to update site";
Error when attempting to update a site fails
INVALID_IDENTIFIERโ
readonly INVALID_IDENTIFIER: "Site identifier is invalid or missing" = "Site identifier is invalid or missing";
Error when site identifier is invalid or empty
INVALID_NAMEโ
readonly INVALID_NAME: "Site name is invalid or missing" = "Site name is invalid or missing";
Error when site name is invalid or empty
NOT_FOUNDโ
readonly NOT_FOUND: "Site not found" = "Site not found";
Error when a requested site cannot be found
systemโ
readonly system: {
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:317
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.
validationโ
readonly validation: {
EMAIL_INVALID: "Email format is invalid";
FIELD_INVALID_FORMAT: "Field format is invalid";
FIELD_REQUIRED: "This field is required";
HOST_INVALID: "Host address is invalid";
PORT_INVALID: "Port number must be between 1 and 65535";
STRING_TOO_LONG: "Value exceeds maximum length";
STRING_TOO_SHORT: "Value is below minimum length";
URL_INVALID: "URL format is invalid";
VALIDATION_FAILED: "Validation failed";
VALUE_OUT_OF_RANGE: "Value is out of allowed range";
};
Defined in: shared/utils/errorCatalog.ts:318
EMAIL_INVALIDโ
readonly EMAIL_INVALID: "Email format is invalid" = "Email format is invalid";
Error when email format is invalid
FIELD_INVALID_FORMATโ
readonly FIELD_INVALID_FORMAT: "Field format is invalid" = "Field format is invalid";
Error when field format is invalid
FIELD_REQUIREDโ
readonly FIELD_REQUIRED: "This field is required" = "This field is required";
Error when required field is missing
HOST_INVALIDโ
readonly HOST_INVALID: "Host address is invalid" = "Host address is invalid";
Error when host address is invalid
PORT_INVALIDโ
readonly PORT_INVALID: "Port number must be between 1 and 65535" = "Port number must be between 1 and 65535";
Error when port number is invalid
STRING_TOO_LONGโ
readonly STRING_TOO_LONG: "Value exceeds maximum length" = "Value exceeds maximum length";
Error when string length exceeds maximum
STRING_TOO_SHORTโ
readonly STRING_TOO_SHORT: "Value is below minimum length" = "Value is below minimum length";
Error when string length is below minimum
URL_INVALIDโ
readonly URL_INVALID: "URL format is invalid" = "URL format is invalid";
Error when URL format is invalid
VALIDATION_FAILEDโ
readonly VALIDATION_FAILED: "Validation failed" = "Validation failed";
Error when validation fails for an event
VALUE_OUT_OF_RANGEโ
readonly VALUE_OUT_OF_RANGE: "Value is out of allowed range" = "Value is out of allowed range";
Error when value is out of allowed range