mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 09:51:10 +00:00
error rework, for polkadot convenience (#7446)
Co-authored-by: Bernhard Schuster <bernhard@parity.io> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1679919830
commit
9687759774
@@ -335,15 +335,19 @@ pub struct LocalizedSignature {
|
||||
|
||||
/// An error type for SS58 decoding.
|
||||
#[cfg(feature = "std")]
|
||||
#[derive(Clone, Copy, Eq, PartialEq, Debug)]
|
||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, thiserror::Error)]
|
||||
pub enum PublicError {
|
||||
/// Bad alphabet.
|
||||
#[error("Base 58 requirement is violated")]
|
||||
BadBase58,
|
||||
/// Bad length.
|
||||
#[error("Length is bad")]
|
||||
BadLength,
|
||||
/// Unknown version.
|
||||
#[error("Unknown version")]
|
||||
UnknownVersion,
|
||||
/// Invalid checksum.
|
||||
#[error("Invalid checksum")]
|
||||
InvalidChecksum,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user