apiculture/error
Error types for apiculture operations.
These errors indicate failure conditions when generating keys, creating alphabets, or encoding/decoding data.
Types
pub type Error {
EmptyAlphabet
SingleCharacterAlphabet
DuplicateCharacters
SecureRandomUnavailable
InvalidByteCount
InvalidEncoding
MalformedInput
ChecksumMismatch
}
Constructors
-
EmptyAlphabetThe alphabet is empty.
-
SingleCharacterAlphabetThe alphabet has only one character.
-
DuplicateCharactersThe alphabet contains duplicate characters.
-
SecureRandomUnavailableSecure randomness is not available on this platform.
-
InvalidByteCountThe requested byte count is invalid (e.g., negative or zero).
-
InvalidEncodingThe encoding is invalid.
-
MalformedInputThe encoded input is malformed.
-
ChecksumMismatchThe checksum does not match.