}
private String getBrokerAdminExceptionBasicMsg(BrokerAdminException bae) {
int type = bae.getType();
BrokerAdminConn ba = bae.getBrokerAdminConn();
String ret, brokerName, host, port;
switch (type) {
case BrokerAdminException.MSG_SEND_ERROR:
ret = ar.getString(ar.E_JMQCMD_MSG_SEND_ERROR);
break;
case BrokerAdminException.MSG_REPLY_ERROR:
ret = ar.getString(ar.E_JMQCMD_MSG_REPLY_ERROR);
break;
case BrokerAdminException.CLOSE_ERROR:
ret = ar.getString(ar.E_JMQCMD_CLOSE_ERROR);
break;
case BrokerAdminException.PROB_GETTING_MSG_TYPE:
ret = ar.getString(ar.E_JMQCMD_PROB_GETTING_MSG_TYPE);
break;
case BrokerAdminException.PROB_GETTING_STATUS:
ret = ar.getString(ar.E_JMQCMD_PROB_GETTING_STATUS);
break;
case BrokerAdminException.REPLY_NOT_RECEIVED:
ret = acr.getString(acr.E_REPLY_NOT_RECEIVED);
break;
case BrokerAdminException.INVALID_OPERATION:
ret = ar.getString(ar.E_JMQCMD_INVALID_OPERATION);
break;
case BrokerAdminException.IGNORE_REPLY_IF_RCVD:
ret = acr.getString(acr.E_NO_REPLY_GIVEUP);
break;
case BrokerAdminException.BUSY_WAIT_FOR_REPLY:
Object args[] = new Object [ 3 ];
brokerName = ba.getKey();
host = ba.getBrokerHost();
port = ba.getBrokerPort();
args[0] = brokerName;
args[1] = host;
args[2] = port;
ret = acr.getString(acr.I_BUSY_WAIT_FOR_REPLY, args);