diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-14 00:14:30 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-14 00:14:30 +0800 |
| commit | 1f2462ae53446c37c6cfe53a57ea86f695c4ef0a (patch) | |
| tree | 9d54a4dcbaf1dc6fe36ecaf98253cbc521ddc8b0 /mingling_core/src/asset/chain | |
| parent | 47aa95b2c65473950e089beac6ac986a3240608e (diff) | |
docs: expand trait and type documentation with examples
Diffstat (limited to 'mingling_core/src/asset/chain')
| -rw-r--r-- | mingling_core/src/asset/chain/error.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mingling_core/src/asset/chain/error.rs b/mingling_core/src/asset/chain/error.rs index bb5f679..4845dbd 100644 --- a/mingling_core/src/asset/chain/error.rs +++ b/mingling_core/src/asset/chain/error.rs @@ -1,12 +1,15 @@ use crate::error::ProgramInternalExecuteError; -/// Represents errors that can occur during chain processing. +/// Represents error types that occur in a chained processing pipeline. +/// +/// This enum is used to uniformly encapsulate various exceptions that may +/// occur during the execution of an entire chain, including IO errors and +/// other custom error messages. #[derive(Debug)] pub enum ChainProcessError { - /// An error with a custom description. + /// Other unclassified generic errors, stored as a string description. Other(String), - - /// An I/O error that occurred during chain processing. + /// Errors resulting from a failed IO operation, holding the standard library's [`std::io::Error`] IO(std::io::Error), } |
