Sfoglia il codice sorgente

webreceive fix for MNFO1

Pat 7 anni fa
parent
commit
39cc4da4ca

+ 0 - 10
GabonTelMobicashMobileAppHelper/src/main/java/com/psi/gabontel/mobileapp/thirdparty/helper/InitializerBean.java

@@ -76,18 +76,8 @@ public class InitializerBean {
             return auth.runCallable(new BeanCaller(prop,jndi,Arrays.asList(params)));
         } catch (Exception e) {
             log.error(key,e);
-            //if(e.getCause().getClass().getSimpleName().equals("IllegalArgumentException")) {
             if(e.getClass().getSimpleName().equals("IllegalArgumentException")) {
                 return e.getMessage();
-            IllegalArgumentException ex = null;
-            if (e instanceof IllegalArgumentException) {
-                ex = (IllegalArgumentException) e;
-            }
-            if (e.getCause() instanceof IllegalArgumentException) {
-                ex = (IllegalArgumentException) e.getCause();
-            }
-            if (ex != null) {
-                return ex.getMessage();
             }
             return "System busy. Please try again later.";
         }