Class AddressFormatException

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AddressFormatException.InvalidCharacter
      This exception is thrown by Base58, Bech32 and the EncodedPrivateKey hierarchy of classes when you try to decode data and a character isn't valid.
      static class  AddressFormatException.InvalidChecksum
      This exception is thrown by Base58, Bech32 and the EncodedPrivateKey hierarchy of classes when you try to decode data and the checksum isn't valid.
      static class  AddressFormatException.InvalidDataLength
      This exception is thrown by Base58, Bech32 and the EncodedPrivateKey hierarchy of classes when you try to decode data and the data isn't of the right size.
      static class  AddressFormatException.InvalidPrefix
      This exception is thrown by the EncodedPrivateKey hierarchy of classes when you try and decode an address or private key with an invalid prefix (version header or human-readable part).
      static class  AddressFormatException.UnexpectedWitnessVersion
      This exception is thrown by SegwitAddress when you try to decode data and the witness version doesn't match the Bech32 encoding as per BIP350.
      static class  AddressFormatException.WrongNetwork
      This exception is thrown by the EncodedPrivateKey hierarchy of classes when you try and decode an address with a prefix (version header or human-readable part) that used by another network (usually: mainnet vs testnet).
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AddressFormatException

        public AddressFormatException()
      • AddressFormatException

        public AddressFormatException​(java.lang.String message)