pub type StateResult<T> = Result<T, StateError>;
#[derive(Debug, thiserror::Error)]
pub enum StateError {
#[error("插件状态初始化失败: {0}")]
PluginInitError(String),
#[error("插件状态应用失败: {0}")]
PluginApplyError(String),
#[error("事务应用失败: {0}")]
TransactionError(String),
#[error("配置错误: {0}")]
ConfigurationError(String),
#[error("字段操作失败: {0}")]
FieldError(String),
#[error("Schema错误: {0}")]
SchemaError(String),
#[error("插件未找到: {0}")]
PluginNotFound(String),
#[error("插件状态无效: {0}")]
InvalidPluginState(String),
}