cd_manager/error.rs
1//! Errors that may be returned by this crate.
2
3/// This error is returned when your attempt to call [`pop`] more times
4/// than you've [`push`]ed to a [`CdManager`].
5///
6/// [`CdManager`]: ./CdManager.t.html
7/// [`pop`]: ../CdManager.t.html#method.pop
8/// [`push`]: ../CdManager.t.html#method.push
9#[derive(Fail, Debug)]
10#[fail(display = "Attempted to pop too many times, counter was already at 0")]
11pub struct TooManyPopError;