Package org.bitcoinj.base.exceptions
Class AddressFormatException.UnexpectedWitnessVersion
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- org.bitcoinj.base.exceptions.AddressFormatException
-
- org.bitcoinj.base.exceptions.AddressFormatException.UnexpectedWitnessVersion
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- AddressFormatException
public static class AddressFormatException.UnexpectedWitnessVersion extends AddressFormatException
This exception is thrown bySegwitAddress
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bitcoinj.base.exceptions.AddressFormatException
AddressFormatException.InvalidCharacter, AddressFormatException.InvalidChecksum, AddressFormatException.InvalidDataLength, AddressFormatException.InvalidPrefix, AddressFormatException.UnexpectedWitnessVersion, AddressFormatException.WrongNetwork
-
-
Constructor Summary
Constructors Constructor Description UnexpectedWitnessVersion()
UnexpectedWitnessVersion(java.lang.String message)
-