Skip to main content

Variable: DATABASE_ERRORS

const DATABASE_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โ€‹

readonly BACKUP_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โ€‹

readonly CONNECTION_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โ€‹

readonly CONSTRAINT_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โ€‹

readonly DATABASE_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โ€‹

readonly DUPLICATE_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โ€‹

readonly IMPORT_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โ€‹

readonly MIGRATION_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โ€‹

readonly QUERY_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โ€‹

readonly RECORD_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โ€‹

readonly RESTORE_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โ€‹

readonly TRANSACTION_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.