Fix aciton module code
[holmes/common.git] / holmes-actions / src / main / java / org / openo / holmes / common / utils / ExceptionUtil.java
index cc58446..1154f38 100644 (file)
@@ -15,7 +15,6 @@
  */\r
 package org.openo.holmes.common.utils;\r
 \r
-import java.util.Locale;\r
 import javax.ws.rs.WebApplicationException;\r
 import javax.ws.rs.core.MediaType;\r
 import javax.ws.rs.core.Response;\r
@@ -28,14 +27,6 @@ public class ExceptionUtil {
 \r
     }\r
 \r
-    public static String getExceptionMsg(Locale locale, Exception e) {\r
-        return I18nProxy.getInstance().getValue(locale, e.getMessage());\r
-    }\r
-\r
-    public static String getExceptionMsgByArgs(Locale locale, Exception e, String[] obj) {\r
-        return I18nProxy.getInstance().getValueByArgs(locale, e.getMessage(), obj);\r
-    }\r
-\r
     public static WebApplicationException buildExceptionResponse(String message) {\r
         Response response = Response.status(EXCEPTION_CODE).entity(message).type(MediaType.TEXT_PLAIN).build();\r
         return new WebApplicationException(response);\r