فهرست منبع

Merge branch 'master' of
https://fzcrepo.ibayad.com/gogs/GabonTelecom/MobileAppHelperPlugin.git

Conflicts:
GabonTelMobicashMobileAppHelper/src/main/java/com/psi/gabontel/mobileapp/thirdparty/helper/InitializerBean.java

Pat 7 سال پیش
والد
کامیت
099632691e

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

@@ -79,6 +79,15 @@ public class InitializerBean {
             //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.";
         }