Package com.mysql.cj.jdbc.exceptions
Class PacketTooBigException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
com.mysql.cj.jdbc.exceptions.PacketTooBigException
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<java.lang.Throwable>
public class PacketTooBigException
extends java.sql.SQLException
Thrown when a packet that is too big for the server is created.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PacketTooBigException(long packetSize, long maximumPacketSize)
Creates a new PacketTooBigException object.PacketTooBigException(java.lang.String message)
-
Method Summary
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PacketTooBigException
public PacketTooBigException(long packetSize, long maximumPacketSize)Creates a new PacketTooBigException object.- Parameters:
packetSize
- the size of the packet that was going to be sentmaximumPacketSize
- the maximum size the server will accept
-
PacketTooBigException
public PacketTooBigException(java.lang.String message)
-