volume/error.rs

spacedrive · core/src/volume/error.rs · rust · Apache-2.0
database

! Volume-related error types

// Source: https://github.com/spacedriveapp/spacedrive | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
//! Volume-related error types

use thiserror::Error;

/// Errors that can occur during volume operations
#[derive(Error, Debug)]
pub enum VolumeError {
	/// IO error during volume operations
	#[error("IO error: {0}")]
	Io(#[from] std::io::Error),

	/// Platform-specific error
	#[error("Platform error: {0}")]
	Platform(String),

	/// Volume not found
	#[error("Volume not found: {0}")]
	NotFound(String),

	/// Volume is not mounted
	#[error("Volume is not mounted: {0}")]
	NotMounted(String),

	/// Volume is read-only
	#[error("Volume is read-only: {0}")]
	ReadOnly(String),

	/// I

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key