Package org.bitcoinj.base.exceptions
Class AddressFormatException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- org.bitcoinj.base.exceptions.AddressFormatException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AddressFormatException.InvalidCharacter,AddressFormatException.InvalidChecksum,AddressFormatException.InvalidDataLength,AddressFormatException.InvalidPrefix,AddressFormatException.UnexpectedWitnessVersion
public class AddressFormatException extends java.lang.IllegalArgumentException- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddressFormatException.InvalidCharacterstatic classAddressFormatException.InvalidChecksumstatic classAddressFormatException.InvalidDataLengthstatic classAddressFormatException.InvalidPrefixThis exception is thrown by theEncodedPrivateKeyhierarchy of classes when you try and decode an address or private key with an invalid prefix (version header or human-readable part).static classAddressFormatException.UnexpectedWitnessVersionThis exception is thrown bySegwitAddresswhen you try to decode data and the witness version doesn't match the Bech32 encoding as per BIP350.static classAddressFormatException.WrongNetworkThis exception is thrown by theEncodedPrivateKeyhierarchy 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).
-
Constructor Summary
Constructors Constructor Description AddressFormatException()AddressFormatException(java.lang.String message)
-