From: Riccardo Casatta Date: Fri, 4 Dec 2020 14:59:39 +0000 (+0100) Subject: [docs] descriptor/error.rs X-Git-Tag: v0.2.0~35^2~2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/struct.SingleMissingOutputError.html?a=commitdiff_plain;h=8b1a9d251820a9ed47c1584e9fd6d5c0c6eeca7a;p=bdk [docs] descriptor/error.rs --- diff --git a/src/descriptor/error.rs b/src/descriptor/error.rs index 14c5d8cc..151487da 100644 --- a/src/descriptor/error.rs +++ b/src/descriptor/error.rs @@ -27,29 +27,35 @@ /// Errors related to the parsing and usage of descriptors #[derive(Debug)] pub enum Error { - InternalError, - InvalidPrefix(Vec), - HardenedDerivationOnXpub, - MalformedInput, + //InternalError, + //InvalidPrefix(Vec), + //HardenedDerivationOnXpub, + //MalformedInput, + /// Invalid HD Key path, such as having a wildcard but a length != 1 InvalidHDKeyPath, - KeyParsingError(String), + //KeyParsingError(String), + #[allow(missing_docs)] Key(crate::keys::KeyError), - + #[allow(missing_docs)] Policy(crate::descriptor::policy::PolicyError), - InputIndexDoesntExist, - MissingPublicKey, - MissingDetails, - + //InputIndexDoesntExist, + //MissingPublicKey, + //MissingDetails, + /// Invalid character found in the descriptor checksum InvalidDescriptorCharacter(char), - CantDeriveWithMiniscript, - + //CantDeriveWithMiniscript, + #[allow(missing_docs)] BIP32(bitcoin::util::bip32::Error), + #[allow(missing_docs)] Base58(bitcoin::util::base58::Error), + #[allow(missing_docs)] PK(bitcoin::util::key::Error), + #[allow(missing_docs)] Miniscript(miniscript::Error), + #[allow(missing_docs)] Hex(bitcoin::hashes::hex::Error), }