pub enum Error {
Show 76 variants
AssertionFailed(String),
BadBunkerUrl,
BadEncryptedMessage,
BadEncryptedMessageBase64(DecodeError),
Base64(DecodeError),
Bech32Decode(DecodeError),
Bech32Encode(EncodeError),
Bech32Hrp(Error),
Crypto(Error),
Disconnected,
PrivateKeyEncryption,
FromUtf8(FromUtf8Error),
WrongBech32(String, String),
KeyOrSignature(Error),
EventInFuture,
Fmt(Error),
HashMismatch,
HexDecode(FromHexError),
Http(Error),
InvalidEncryptedPrivateKey,
InvalidEncryptedEvent,
InvalidHll,
InvalidId,
InvalidIdPrefix,
InvalidLength(InvalidLength),
InvalidNAddr,
InvalidNEvent,
InvalidOperation,
InvalidPrivateKey,
InvalidProfile,
InvalidPublicKey,
InvalidPublicKeyPrefix,
InvalidRecipient,
InvalidState(String),
InvalidUrl(ParseError),
InvalidUri(InvalidUri),
InvalidUrlTlv,
InvalidUrlHost(String),
InvalidUrlScheme(String),
InvalidUrlMissingAuthority,
Nip46Error(String),
Nip46FailedToPost(String),
Nip46NoResponse,
NonReplaceableAddr,
NoPrivateKey,
NoPublicKey,
OutOfRange(usize),
ParseInt(ParseIntError),
RelayDidNotAuth,
RelayForgotAuth,
RelayRejectedPost,
RelayRejectedAuth,
RelayRequiresAuth,
Reqwest(Error),
Scrypt,
SerdeJson(Error),
SignerIsLocked,
Slice(TryFromSliceError),
Speedy(Error),
TagMismatch,
TimedOut,
Timeout(Elapsed),
UnknownEventKind(u32),
UnknownKeySecurity(u8),
UnknownCipherVersion(u8),
Unpad(UnpadError),
UnsupportedAlgorithm,
Url(String),
Utf8Error(Utf8Error),
Websocket(Error),
WebsocketConnectionFailed(StatusCode),
WrongEventKind,
WrongLengthHexString,
WrongLengthKindBytes,
WrongDecryptionPassword,
ZapReceipt(String),
}
Expand description
Errors that can occur in the nostr-proto crate
Variants§
AssertionFailed(String)
Assertion failed
BadBunkerUrl
Bad NIP-46 Bunker URL
BadEncryptedMessage
Bad Encrypted Message
BadEncryptedMessageBase64(DecodeError)
Bad Encrypted Message due to bad Base64
Base64(DecodeError)
Base64 error
Bech32Decode(DecodeError)
Bech32 decode error
Bech32Encode(EncodeError)
Bech32 encode error
Bech32Hrp(Error)
Bech32 HRP error
Crypto(Error)
Crypto error
Disconnected
Disconnected
PrivateKeyEncryption
Encryption/Decryption Error
FromUtf8(FromUtf8Error)
From utf8 Error
WrongBech32(String, String)
Bech32 error
KeyOrSignature(Error)
Key or Signature error
EventInFuture
Event is in the future
Fmt(Error)
Formatting error
HashMismatch
A hash mismatch verification error
HexDecode(FromHexError)
Hex string decoding error
Http(Error)
HTTP error
InvalidEncryptedPrivateKey
Invalid encrypted private key
InvalidEncryptedEvent
Invalid encrypted event
InvalidHll
Invalid HyperLogLog data
InvalidId
Invalid event Id
InvalidIdPrefix
Invalid event Id Prefix
InvalidLength(InvalidLength)
Invalid digest length
InvalidNAddr
Invalid NAddr
InvalidNEvent
Invalid NEvent
InvalidOperation
Invalid Operation
InvalidPrivateKey
Invalid Private Key
InvalidProfile
Invalid Profile
InvalidPublicKey
Invalid public key
InvalidPublicKeyPrefix
Invalid public key prefix
InvalidRecipient
Invalid recipient
InvalidState(String)
Invalid state
InvalidUrl(ParseError)
Invalid URL
InvalidUri(InvalidUri)
Invalid URI
InvalidUrlTlv
Invalid URL TLV encoding
InvalidUrlHost(String)
Invalid URL Host
InvalidUrlScheme(String)
Invalid URL Scheme
InvalidUrlMissingAuthority
Missing URL Authority
Nip46Error(String)
NIP-46 error
Nip46FailedToPost(String)
NIP-46 failed to post
Nip46NoResponse
NIP-46 failed to post
NonReplaceableAddr
Addr to a non-replaceable event kind
NoPrivateKey
No Private Key
NoPublicKey
No Public Key
OutOfRange(usize)
Out of Range
ParseInt(ParseIntError)
Parse integer error
RelayDidNotAuth
Relay did not AUTH
RelayForgotAuth
Relay forgot that we successfully AUTHed
RelayRejectedPost
Relay rejected our post
RelayRejectedAuth
Relay rejected our AUTH
RelayRequiresAuth
Relay requires AUTH but we aren’t supplying it
Reqwest(Error)
HTTP request eror
Scrypt
Scrypt error
SerdeJson(Error)
Serialization error
SignerIsLocked
Signer is locked
Slice(TryFromSliceError)
Try from slice error
Speedy(Error)
Speedy error
TagMismatch
Tag mismatch
TimedOut
Timeout
Timeout(Elapsed)
Timeout
UnknownEventKind(u32)
Unknown event kind
UnknownKeySecurity(u8)
Unknown Key Security
UnknownCipherVersion(u8)
Unknown Cipher Version
Unpad(UnpadError)
Unpad error
UnsupportedAlgorithm
Unsupported Algorithm
Url(String)
Url Error
Utf8Error(Utf8Error)
UTF-8 error
Websocket(Error)
Websocket error
WebsocketConnectionFailed(StatusCode)
Websocket Connection Failed
WrongEventKind
Wrong event kind
WrongLengthHexString
Wrong length hex string
WrongLengthKindBytes
Wrong length bytes for event kind
WrongDecryptionPassword
Wrong Decryption Password
ZapReceipt(String)
Zap Receipt issue