/** * StorageError - Error domain for storage operations * * Defines error codes for storage layer operations including * Dbm operations, serialization, and entity persistence. * * @version 0.1 * @since 0.1 */ namespace Implexus.Storage { /** * Error domain for storage operations. * * These errors can occur during: * - Database open/close operations * - Read/write operations * - Transaction management * - Data serialization/deserialization */ public errordomain StorageError { /** I/O error during file operations */ IO_ERROR, /** Data corruption detected */ CORRUPT_DATA, /** Requested key was not found */ KEY_NOT_FOUND, /** Database is already open */ ALREADY_OPEN, /** Database is not open */ NOT_OPEN, /** Transaction is already active */ TRANSACTION_ACTIVE, /** No transaction is active */ NO_TRANSACTION, /** Transaction commit failed */ COMMIT_FAILED, /** Transaction rollback failed */ ROLLBACK_FAILED, /** Invalid key format */ INVALID_KEY, /** Invalid data format */ INVALID_DATA, /** Storage quota exceeded */ QUOTA_EXCEEDED, /** Permission denied */ PERMISSION_DENIED, /** Unknown storage error */ UNKNOWN } } // namespace Implexus.Storage