job/error.rs

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

! Error types for the job system

// 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.
//! Error types for the job system

use std::fmt;
use thiserror::Error;

/// Result type for job operations
pub type JobResult<T = ()> = Result<T, JobError>;

/// Errors that can occur during job execution
#[derive(Debug, Error, Clone)]
pub enum JobError {
	/// Job was interrupted (paused or cancelled)
	#[error("Job was interrupted")]
	Interrupted,

	/// Job execution failed
	#[error("Job execution failed: {0}")]
	ExecutionFailed(String),

	/// Job execution failed
	#[error("Error in job execution: {0}")]
	ErrorInExecution(String),

	/// Database operation failed
	#[error("Databa

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

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

Get a free API key