subxt_utils_fetchmetadata/
error.rs1#[derive(Debug, thiserror::Error)]
7#[non_exhaustive]
8pub enum Error {
9 #[error("Cannot decode hex value: {0}")]
11 DecodeError(#[from] hex::FromHexError),
12 #[error("Cannot scale encode/decode value: {0}")]
14 CodecError(#[from] codec::Error),
15 #[cfg(feature = "url")]
17 #[error("Request error: {0}")]
18 RequestError(#[from] jsonrpsee::core::ClientError),
19 #[error(
21 "Failed IO for {0}, make sure that you are providing the correct file path for metadata: {1}"
22 )]
23 Io(String, std::io::Error),
24 #[error("'{0}' not supported, supported URI schemes are http, https, ws or wss.")]
26 InvalidScheme(String),
27 #[error("Other error: {0}")]
29 Other(String),
30}