Class BadMnemonicException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.hedera.hashgraph.sdk.BadMnemonicException
All Implemented Interfaces:
Serializable

public class BadMnemonicException extends Exception
Custom exception for when there are issues with the mnemonic.
See Also:
  • Field Details

    • mnemonic

      public final Mnemonic mnemonic
      The mnemonic that failed validation.
    • reason

      public final BadMnemonicReason reason
      The reason for which the mnemonic failed validation.
    • unknownWordIndices

      @Nullable public final List<Integer> 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.UnknownWords then this will be not null.

  • Constructor Details

    • BadMnemonicException

      BadMnemonicException(Mnemonic mnemonic, BadMnemonicReason reason, List<Integer> unknownWordIndices)
      Constructor.
      Parameters:
      mnemonic - the mnemonic
      reason - the reason
      unknownWordIndices - the indices
    • BadMnemonicException

      BadMnemonicException(Mnemonic mnemonic, BadMnemonicReason reason)
      Constructor.
      Parameters:
      mnemonic - the mnemonic
      reason - the reason