Package client
Class PacketConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
client.PacketConversionException
- All Implemented Interfaces:
Serializable
The PacketConversionException is used when trying to convert an object of type Packet to something else.
It has its own unique exception in order to provide greater clarity when errors occur.
- Since:
- 2023
- See Also:
-
Constructor Summary
ConstructorDescriptionSimple PacketConversionException where it is initialises its superclass with a generic message.PacketConversionException
(String errorMessage) Simple PacketConversionException where it is initialises its superclass with a specialised message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PacketConversionException
public PacketConversionException()Simple PacketConversionException where it is initialises its superclass with a generic message. -
PacketConversionException
Simple PacketConversionException where it is initialises its superclass with a specialised message.- Parameters:
errorMessage
-
-