code: private static SQLException addHostInformationToException(SQLException exception,
        Protocol protocol) {
      if (protocol != null) {
        return new SQLException(exception.getMessage()
            + "\non " + protocol.getHostAddress().toString() + ",master="
            + protocol.isMasterConnection(), exception.getSQLState(), exception.getErrorCode(),
            exception.getCause());
  
      }
      return exception;
    }
docs: Add Host information ("on HostAddress...") to exception.
  
  <p>example :
  java.sql.SQLException: (conn=603) Cannot execute statement in a READ ONLY transaction.<br/>
  Query is: INSERT INTO TableX VALUES (21)<br/> on HostAddress{host='mydb.example.com',
  port=3306},master=true</p>
  
  @param exception current exception
  @param protocol  protocol to have hostname