Package org.sol4k.utilities
Class AddressFormatException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- org.sol4k.utilities.AddressFormatException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AddressFormatException.InvalidCharacter,AddressFormatException.InvalidChecksum,AddressFormatException.InvalidDataLength,AddressFormatException.InvalidPrefix,AddressFormatException.UnexpectedWitnessVersion
public class AddressFormatException extends IllegalArgumentException
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddressFormatException.InvalidCharacterThis exception is thrown byBase58when you try to decode data and a character isn't valid.static classAddressFormatException.InvalidChecksumThis exception is thrown byBase58when you try to decode data and the checksum isn't valid.static classAddressFormatException.InvalidDataLengthThis exception is thrown byBase58when you try to decode data and the data isn't of the right size.static 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(String message)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AddressFormatException
public AddressFormatException()
-
AddressFormatException
public AddressFormatException(String message)
-
-