@@ -21,6 +21,16 @@ public class EventProcessUtils {
Cat.logEvent(key, value, Event.SUCCESS, null);
}
+ /**
+ * 插入一个Event失败的事件
+ *
+ * @param key
+ * @param value
+ */
+ public static void writeFail(String key, String value) {
+ Cat.logEvent(key, value, "1", null);
+ }
+
/**
* 第三方埋点标记
*
@@ -97,7 +97,7 @@ public class CommonException {
public Object notFondMehtod(Exception ex) {
Info info = new Info();
info.setSuccess(false);
- info.setErrorCode("CORE_NOT_FOND");
+ info.setErrorCode(defaultSystemError);
info.setMessage("not fond");
return info;