Skip to content

Commit

Permalink
api: add Error::JoinError
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Jul 3, 2023
1 parent a1aa336 commit 9d216ac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,20 @@ pub enum Error {
#[error(transparent)]
FromUtf8Error(#[from] std::string::FromUtf8Error),

/// A non-specific [`io::Error`].
/// A generic [`io::Error`].
#[error(transparent)]
IoError(#[from] io::Error),

/// A [`tokio::task`] failed to execute to completion.
#[error(transparent)]
JoinError(#[from] tokio::task::JoinError),

/// A [`Pm`](crate::pm::Pm) operation is not implemented.
#[error("Operation `{op}` is unimplemented for `{pm}`")]
#[allow(missing_docs)]
OperationUnimplementedError { op: String, pm: String },

/// Miscellaneous other error.
/// An error from a non-specified category.
#[error("{0}")]
OtherError(String),
}
Expand Down

0 comments on commit 9d216ac

Please sign in to comment.