Skip to main content

platform/error/
mod.rs

1//! 错误处理模块
2//!
3//! 按概念分离的错误类型定义,遵循一个文件一个核心概念的原则
4
5// 子模块声明
6mod base_error;
7mod config_error;
8mod database_error;
9mod network_error;
10mod serialization_error;
11mod storage_error;
12mod validation_error;
13
14// 导出公共 API
15pub use base_error::{BaseError, Result};
16pub use config_error::ConfigError;
17pub use database_error::DatabaseError;
18pub use network_error::NetworkError;
19pub use serialization_error::SerializationError;
20pub use storage_error::StorageError;
21pub use validation_error::ValidationError;