Class ErrorPacket

  • All Implemented Interfaces:
    org.mariadb.jdbc.message.ServerMessage

    public final class ErrorPacket
    extends Object
    implements org.mariadb.jdbc.message.ServerMessage
    Server Error Packet see https://mariadb.com/kb/en/err_packet/
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorPacket​(org.mariadb.jdbc.client.ReadableByteBuf buf, org.mariadb.jdbc.client.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 | +--------------------------------------------------+------------------+
    • Constructor Detail

      • ErrorPacket

        public ErrorPacket​(org.mariadb.jdbc.client.ReadableByteBuf buf,
                           org.mariadb.jdbc.client.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 String getMessage()
        Error message
        Returns:
        error message
      • getSqlState

        public String getSqlState()
        SQL State
        Returns:
        SQLState