Class MaxAllowedPacketException

  • All Implemented Interfaces:
    java.io.Serializable

    public class MaxAllowedPacketException
    extends java.io.IOException
    Dedicate exception when error is due to sending packet with size > to server max_allowed_packet, that would cause server to drop connection
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean mustReconnect
      is connection in wrong state
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      MaxAllowedPacketException​(java.lang.String message, boolean mustReconnect)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isMustReconnect()
      Indicate that connection state is unsure
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • mustReconnect

        private final boolean mustReconnect
        is connection in wrong state
    • Constructor Detail

      • MaxAllowedPacketException

        public MaxAllowedPacketException​(java.lang.String message,
                                         boolean mustReconnect)
        Constructor
        Parameters:
        message - error message
        mustReconnect - is connection state unsure
    • Method Detail

      • isMustReconnect

        public boolean isMustReconnect()
        Indicate that connection state is unsure
        Returns:
        must driver reconnect connection