From b1d571fd730efe257423ee1fcd00ff4121e24ebd Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 23 Jan 2026 04:10:00 +0800 Subject: Add local actions modules and ProcessActionError enum - Add local_actions module with account_manage and current_sheet submodules - Add ProcessActionError enum with authorization and registration variants - Add missing import for MemberId in error module --- actions/src/connection/error.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'actions/src/connection/error.rs') diff --git a/actions/src/connection/error.rs b/actions/src/connection/error.rs index 241c16e..1a4e221 100644 --- a/actions/src/connection/error.rs +++ b/actions/src/connection/error.rs @@ -1,5 +1,6 @@ use std::io; use thiserror::Error; +use vcs_data::data::member::MemberId; #[derive(Error, Debug, Clone)] pub enum ConnectionError { @@ -7,6 +8,18 @@ pub enum ConnectionError { Io(String), } +#[derive(Error, Debug, Clone)] +pub enum ProcessActionError { + #[error("Action `{0}` not registered")] + ActionNotRegistered(String), + + #[error("Authorize `{0}` failed")] + AuthorizeFailed(MemberId), + + #[error("Authorize host `{0}` failed")] + AuthorizeHostFailed(MemberId), +} + impl From for ConnectionError { fn from(error: io::Error) -> Self { ConnectionError::Io(error.to_string()) -- cgit