/*
 * DBError.vala
 * 
 * Database error domain definition.
 */

namespace RSSuper {
    /**
     * DBError - Database error domain
     */
    public errordomain DBError {
        FAILED,    /** Generic database operation failed */
        NOT_FOUND, /** Record not found */
        DUPLICATE, /** Duplicate key or record */
        CORRUPTED, /** Database is corrupted */
        TIMEOUT,   /** Operation timed out */
        INVALID_STATE, /** Invalid database state */
        MIGRATION_FAILED, /** Migration failed */
        CONSTRAINT_FAILED, /** Constraint violation */
        FOREIGN_KEY_FAILED, /** Foreign key constraint failed */
        UNIQUE_FAILED, /** Unique constraint failed */
        CHECK_FAILED, /** Check constraint failed */
    }
}
