Skip to content

Commit

Permalink
Add op failure client error (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
iduartgomez authored Dec 30, 2024
1 parent 8095aac commit 157966f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rust/src/client_api/client_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ pub enum ErrorKind {
RequestError(#[from] RequestError),
#[error("error while executing operation in the network: {cause}")]
OperationError { cause: Cow<'static, str> },
// TODO: identify requests by some id so we can inform clients which one failed exactly
#[error("operation timed out")]
FailedOperation,
#[error("peer should shutdown")]
Shutdown,
}
Expand Down

0 comments on commit 157966f

Please sign in to comment.