Class ErrorPacket

  • All Implemented Interfaces:
    ServerMessage

    public final class ErrorPacket
    extends java.lang.Object
    implements ServerMessage
    Server Error Packet see https://mariadb.com/kb/en/err_packet/
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private short errorCode  
      private static Logger logger  
      private java.lang.String message  
      private java.lang.String sqlState  
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorPacket​(ReadableByteBuf buf, Context context)
      +--------------------------------------------------+ | 0 1 2 3 4 5 6 7 8 9 a b c d e f | +--------------------------------------------------+------------------+ | 17 00 00 01 FF 10 04 54 6F 6F 20 6D 61 6E 79 20 | .......Too many | | 63 6F 6E 6E 65 63 74 69 6F 6E 73 | connections | +--------------------------------------------------+------------------+
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      short getErrorCode()
      Error code
      java.lang.String getMessage()
      Error message
      java.lang.String getSqlState()
      SQL State
      • Methods inherited from class java.lang.Object

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

      • logger

        private static final Logger logger
      • errorCode

        private final short errorCode
      • message

        private final java.lang.String message
      • sqlState

        private final java.lang.String sqlState
    • Constructor Detail

      • ErrorPacket

        public ErrorPacket​(ReadableByteBuf buf,
                           Context context)
        +--------------------------------------------------+ | 0 1 2 3 4 5 6 7 8 9 a b c d e f | +--------------------------------------------------+------------------+ | 17 00 00 01 FF 10 04 54 6F 6F 20 6D 61 6E 79 20 | .......Too many | | 63 6F 6E 6E 65 63 74 69 6F 6E 73 | connections | +--------------------------------------------------+------------------+
        Parameters:
        buf - error packet buffer
        context - current context
    • Method Detail

      • getErrorCode

        public short getErrorCode()
        Error code
        Returns:
        error code
      • getMessage

        public java.lang.String getMessage()
        Error message
        Returns:
        error message
      • getSqlState

        public java.lang.String getSqlState()
        SQL State
        Returns:
        SQLState