diff options
Diffstat (limited to 'actions/src/connection/error.rs')
| -rw-r--r-- | actions/src/connection/error.rs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/actions/src/connection/error.rs b/actions/src/connection/error.rs deleted file mode 100644 index 1a4e221..0000000 --- a/actions/src/connection/error.rs +++ /dev/null @@ -1,27 +0,0 @@ -use std::io; -use thiserror::Error; -use vcs_data::data::member::MemberId; - -#[derive(Error, Debug, Clone)] -pub enum ConnectionError { - #[error("I/O error: {0}")] - 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<io::Error> for ConnectionError { - fn from(error: io::Error) -> Self { - ConnectionError::Io(error.to_string()) - } -} |
