StorageError.vala 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /**
  2. * StorageError - Error domain for storage operations
  3. *
  4. * Defines error codes for storage layer operations including
  5. * Dbm operations, serialization, and entity persistence.
  6. *
  7. * @version 0.1
  8. * @since 0.1
  9. */
  10. namespace Implexus.Storage {
  11. /**
  12. * Error domain for storage operations.
  13. *
  14. * These errors can occur during:
  15. * - Database open/close operations
  16. * - Read/write operations
  17. * - Transaction management
  18. * - Data serialization/deserialization
  19. */
  20. public errordomain StorageError {
  21. /** I/O error during file operations */
  22. IO_ERROR,
  23. /** Data corruption detected */
  24. CORRUPT_DATA,
  25. /** Requested key was not found */
  26. KEY_NOT_FOUND,
  27. /** Database is already open */
  28. ALREADY_OPEN,
  29. /** Database is not open */
  30. NOT_OPEN,
  31. /** Transaction is already active */
  32. TRANSACTION_ACTIVE,
  33. /** No transaction is active */
  34. NO_TRANSACTION,
  35. /** Transaction commit failed */
  36. COMMIT_FAILED,
  37. /** Transaction rollback failed */
  38. ROLLBACK_FAILED,
  39. /** Invalid key format */
  40. INVALID_KEY,
  41. /** Invalid data format */
  42. INVALID_DATA,
  43. /** Storage quota exceeded */
  44. QUOTA_EXCEEDED,
  45. /** Permission denied */
  46. PERMISSION_DENIED,
  47. /** Unknown storage error */
  48. UNKNOWN
  49. }
  50. } // namespace Implexus.Storage