Migliorata gestione eccezioni

This commit is contained in:
Giuseppe Scorrano 2019-11-26 17:29:56 +01:00
parent ad06e269e8
commit a336fa68eb
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ public class ClassRouter {
return (T)clazz.newInstance(); return (T)clazz.newInstance();
} catch (InstantiationException | MethodPathNotRegisteredException | IllegalAccessException ex) { } catch (InstantiationException | MethodPathNotRegisteredException | IllegalAccessException ex) {
UtilityExceptions.defaultException(null, ex, true); // UtilityExceptions.defaultException(null, ex, true);
} }
return null; return null;

View File

@ -38,7 +38,7 @@ public class UtilityLogger {
} }
public static void errorMe(Exception ex, String additionalText, Runnable onComplete, RunnableArgs<Exception> onFailed) { public static void errorMe(Exception ex, String additionalText, Runnable onComplete, RunnableArgs<Exception> onFailed) {
if(!(ex instanceof SocketTimeoutException)) { if(!(ex instanceof SocketTimeoutException) && !(ex.getCause() instanceof SocketTimeoutException)) {
String message = UtilityResources.readRawTextFile(R.raw.error_mail); String message = UtilityResources.readRawTextFile(R.raw.error_mail);