mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-31 01:09:23 +00:00
init event notifer
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// src/error.rs
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum Error {
|
||||
#[error("target not found: {0}")]
|
||||
TargetNotFound(String),
|
||||
|
||||
#[error("send failed: {0}")]
|
||||
SendError(String),
|
||||
|
||||
#[error("target error: {0}")]
|
||||
TargetError(String),
|
||||
|
||||
#[error("invalid configuration: {0}")]
|
||||
ConfigError(String),
|
||||
|
||||
#[error("store error: {0}")]
|
||||
StoreError(String),
|
||||
|
||||
#[error("invalid event name: {0}")]
|
||||
InvalidEventName(String), // 添加此变体
|
||||
}
|
||||
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
Reference in New Issue
Block a user