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
38
39
40
41
42
43
44
45
46
//! Error types for the service layer.
//!
//! This module defines error types that can occur during service-level operations,
//! such as database interactions, file I/O, or business logic failures.
//!
//! # Example
//!
//! ```no_run
//! use korrosync::service::error::ServiceError;
//! use korrosync::service::db::KorrosyncServiceRedb;
//!
//! // ServiceError is returned from service operations
//! let result = KorrosyncServiceRedb::new("invalid/path/db.redb");
//!
//! match result {
//! Ok(service) => println!("Service created successfully"),
//! Err(ServiceError::Io(e)) => eprintln!("I/O error: {}", e),
//! Err(ServiceError::DB(e)) => eprintln!("Database error: {}", e),
//! }
//! ```
use Error;