java.lang.Object
java.lang.Throwable
java.lang.Exception
com.hedera.hashgraph.sdk.BadMnemonicException
- All Implemented Interfaces:
Serializable
Custom exception for when there are issues with the mnemonic.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MnemonicThe mnemonic that failed validation.final BadMnemonicReasonThe reason for which the mnemonic failed validation.If not null, these are the indices in the mnemonic that were not found in the BIP-39 standard English word list. -
Constructor Summary
ConstructorsConstructorDescriptionBadMnemonicException(Mnemonic mnemonic, BadMnemonicReason reason) Constructor.BadMnemonicException(Mnemonic mnemonic, BadMnemonicReason reason, List<Integer> unknownWordIndices) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
mnemonic
The mnemonic that failed validation. -
reason
The reason for which the mnemonic failed validation. -
unknownWordIndices
If not null, these are the indices in the mnemonic that were not found in the BIP-39 standard English word list.If
reason == BadMnemonicReason.UnknownWordsthen this will be not null.
-
-
Constructor Details
-
BadMnemonicException
BadMnemonicException(Mnemonic mnemonic, BadMnemonicReason reason, List<Integer> unknownWordIndices) Constructor.- Parameters:
mnemonic- the mnemonicreason- the reasonunknownWordIndices- the indices
-
BadMnemonicException
BadMnemonicException(Mnemonic mnemonic, BadMnemonicReason reason) Constructor.- Parameters:
mnemonic- the mnemonicreason- the reason
-