return handleAgentException(ex, messageId, new String[] {arg});
}
public AgentException handleAgentException(Exception ex, String messageId, String[] args)
{
AgentException result = null;
Level level = Level.FINE;
if (ex instanceof AgentException) {
result = (AgentException)ex;
} else if (ex instanceof ConfigException) {
result = new AgentException(ex);
} else {
level = Level.WARNING;
result = new AgentException(ex);
}
StringManagerBase sm = StringManagerBase.getStringManager(getLogger().getResourceBundleName());
getLogger().log(level, sm.getString(messageId, args), ex);
return result;
}