1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Error handling module for the file manager.
//!
//! This module defines the error types and result type used throughout the application.
//! It provides a consistent error handling approach using the `thiserror` crate to
//! implement error types that are both user-friendly and programmatically useful.
//!
//! # Examples
use Error;
/// Comprehensive error type for file manager operations.
///
/// This enum represents all possible errors that can occur during file operations,
/// including IO errors, invalid patterns, and missing paths.
///
/// # Examples
///
/// Creating and handling different error types:
///
/// ```
/// use fmql::error::FMQLError;
///
/// // Creating an IoError
/// let io_error = FMQLError::IoError(std::io::Error::new(std::io::ErrorKind::NotFound, "File not found"));
/// assert!(format!("{}", io_error).contains("IO error"));
/// ```