radicle_cob/signatures/
error.rs

1// Copyright © 2019-2020 The Radicle Foundation <hello@radicle.foundation>
2
3use radicle_crypto::ssh::ExtendedSignatureError;
4use thiserror::Error;
5
6#[derive(Debug, Error)]
7#[non_exhaustive]
8pub enum Signature {
9    #[error("missing {0}")]
10    Missing(&'static str),
11
12    #[error(transparent)]
13    Serde(#[from] serde::de::value::Error),
14}
15
16#[derive(Debug, Error)]
17#[non_exhaustive]
18pub enum Signatures {
19    #[error(transparent)]
20    ExtendedSignature(#[from] ExtendedSignatureError),
21
22    #[error(transparent)]
23    Signature(#[from] Signature),
24}