Skip to content

Commit

Permalink
Add Error::Cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexagon committed Sep 25, 2023
1 parent 4023d1a commit ca9b006
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ pub enum Error {
/// Underlying integer type does not fit into the target type.
#[error("underlying integer is too large to fit in target type")]
IntOverflow,
/// Helper error variant for cancelled operations.
#[error("operation cancelled")]
Cancelled,
}

/// Error type for integer parsing related errors.
Expand Down

0 comments on commit ca9b006

Please sign in to comment.