Class AddressFormatException.UnexpectedWitnessVersion

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    AddressFormatException

    public static class AddressFormatException.UnexpectedWitnessVersion
    extends AddressFormatException
    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. You shouldn't allow the user to proceed in this case.
    See Also:
    Serialized Form
    • Constructor Detail

      • UnexpectedWitnessVersion

        public UnexpectedWitnessVersion()
      • UnexpectedWitnessVersion

        public UnexpectedWitnessVersion​(java.lang.String message)