diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-09 11:57:22 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-09 12:10:40 +0100 |
commit | 7f3d55f777f44f9046ac91afe8e398984f1e4ba1 (patch) | |
tree | 4c3edeae026a56d8fadeb5c6ea327a2d13185c74 /openpgp | |
parent | d4e3162c0c56a874f29a58d7fe84a8723b9516aa (diff) |
openpgp: New errors Expired and NotYetLive.
Diffstat (limited to 'openpgp')
-rw-r--r-- | openpgp/src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs index d533ec13..f503f77f 100644 --- a/openpgp/src/lib.rs +++ b/openpgp/src/lib.rs @@ -260,6 +260,14 @@ pub enum Error { /// Index out of range. #[fail(display = "Index out of range")] IndexOutOfRange, + + /// Expired. + #[fail(display = "Expired on {:?}", _0)] + Expired(std::time::SystemTime), + + /// Not yet live. + #[fail(display = "Not live until {:?}", _0)] + NotYetLive(std::time::SystemTime), } /// The OpenPGP packets that Sequoia understands. |