Package org.bitcoinj.core
Class AddressFormatException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- org.bitcoinj.core.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 class
AddressFormatException.InvalidCharacter
This exception is thrown byBase58
,Bech32
and thePrefixedChecksummedBytes
hierarchy of classes when you try to decode data and a character isn't valid.static class
AddressFormatException.InvalidChecksum
This exception is thrown byBase58
,Bech32
and thePrefixedChecksummedBytes
hierarchy of classes when you try to decode data and the checksum isn't valid.static class
AddressFormatException.InvalidDataLength
This exception is thrown byBase58
,Bech32
and thePrefixedChecksummedBytes
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 thePrefixedChecksummedBytes
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 bySegwitAddress
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 thePrefixedChecksummedBytes
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).
-
Constructor Summary
Constructors Constructor Description AddressFormatException()
AddressFormatException(java.lang.String message)
-