@Override public String toString() { String name = ErrorCode.getName(code); return "[" + (name != null ? name : code) + " @ " + (service != null ? service : "localhost") + "]: " + message; } }
return "TEST_AND_SET_CONDITION_FAILED"; default: return ErrorCode.getName(code);
public void addFailure(com.yahoo.messagebus.Error e) { CountMetric metric = errorMap.get(e.getCode()); if (metric == null) { metric = new CountMetric(ErrorCode.getName(e.getCode()), failures); metric.setXmlTagName("failure"); errorMap.put(e.getCode(), metric); } metric.inc(1); } }
public void addError(com.yahoo.messagebus.Error e) { CountMetric metric = errorMap.get(e.getCode()); if (metric == null) { metric = new CountMetric(ErrorCode.getName(e.getCode()), allErrors); metric.setXmlTagName("error"); errorMap.put(e.getCode(), metric); } metric.inc(1); }