Variable: DATABASE_ERRORS
constDATABASE_ERRORS: {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";MIGRATION_FAILED:"Data migration failed";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:246
Database-related error messages.
Type Declarationโ
BACKUP_FAILEDโ
readonlyBACKUP_FAILED:"Backup operation failed"="Backup operation failed"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when backup operation fails
CONNECTION_FAILEDโ
readonlyCONNECTION_FAILED:"Database connection failed"="Database connection failed"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when database connection fails
CONSTRAINT_VIOLATIONโ
readonlyCONSTRAINT_VIOLATION:"Data constraint violation"="Data constraint violation"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when data constraint is violated
DATABASE_LOCKEDโ
readonlyDATABASE_LOCKED:"Database is locked"="Database is locked"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when database is locked
DUPLICATE_ENTRYโ
readonlyDUPLICATE_ENTRY:"Duplicate entry detected"="Duplicate entry detected"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when duplicate entry is detected
IMPORT_DATA_INVALIDโ
readonlyIMPORT_DATA_INVALID:"Invalid import data format"="Invalid import data format"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when import data format is invalid
MIGRATION_FAILEDโ
readonlyMIGRATION_FAILED:"Data migration failed"="Data migration failed"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when data migration fails
QUERY_FAILEDโ
readonlyQUERY_FAILED:"Database query failed"="Database query failed"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when query execution fails
RECORD_NOT_FOUNDโ
readonlyRECORD_NOT_FOUND:"Record not found"="Record not found"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when record is not found
RESTORE_FAILEDโ
readonlyRESTORE_FAILED:"Restore operation failed"="Restore operation failed"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when restore operation fails
TRANSACTION_FAILEDโ
readonlyTRANSACTION_FAILED:"Database transaction failed"="Database transaction failed"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when transaction fails
Remarksโ
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error messages for database operations, data persistence issues, and data integrity errors.