Invalid Mnemonic Exception
Exception thrown when a mnemonic phrase is invalid.
This exception indicates general mnemonic validation failures that are not covered by more specific exceptions like InvalidChecksumException or InvalidWordException.
Common causes:
Empty mnemonic phrase
Invalid word count (must be 12, 15, 18, 21, or 24 words)
Null or blank input
Example:
try {
val m = Mnemonic.from("")
} catch (e: InvalidMnemonicException) {
println("Invalid mnemonic: ${e.message}")
}Content copied to clipboard
See also:
InvalidChecksumException for checksum validation failures
InvalidWordException for words not in the word list
Sep05Exception base class
Parameters
message
Description of the validation failure