class
BadMnemonic
extendsError
Custom exception for when there are issues with the mnemonic.
Note: Each language has differing conventions for errors:
- Java, Dart —
BadMnemonicException
- Rust, JavaScript, Python —
BadMnemonicError
- Go —
ErrBadMnemonic
- C —
HEDERA_BAD_MNEMONIC_UNKNOWN_WORDS
, etc.
mnemonic
: Mnemonic
The mnemonic that failed validation.
reason
: BadMnemonicReason
The reason for which the mnemonic failed validation.
The indices in the mnemonic that were not found in the BIP-39 standard English word list; if, the reason for validation failure was unknown words.