|
|
@ -46,6 +46,7 @@ import com.bugsnag.android.BeforeSend;
|
|
|
|
import com.bugsnag.android.Bugsnag;
|
|
|
|
import com.bugsnag.android.Bugsnag;
|
|
|
|
import com.bugsnag.android.Error;
|
|
|
|
import com.bugsnag.android.Error;
|
|
|
|
import com.bugsnag.android.Report;
|
|
|
|
import com.bugsnag.android.Report;
|
|
|
|
|
|
|
|
import com.sun.mail.iap.ConnectionException;
|
|
|
|
|
|
|
|
|
|
|
|
import org.json.JSONArray;
|
|
|
|
import org.json.JSONArray;
|
|
|
|
import org.json.JSONException;
|
|
|
|
import org.json.JSONException;
|
|
|
@ -160,6 +161,7 @@ public class ApplicationEx extends Application {
|
|
|
|
ignore.add("com.sun.mail.util.MailConnectException");
|
|
|
|
ignore.add("com.sun.mail.util.MailConnectException");
|
|
|
|
ignore.add("javax.mail.AuthenticationFailedException");
|
|
|
|
ignore.add("javax.mail.AuthenticationFailedException");
|
|
|
|
ignore.add("java.net.UnknownHostException");
|
|
|
|
ignore.add("java.net.UnknownHostException");
|
|
|
|
|
|
|
|
ignore.add("java.net.SocketTimeoutException");
|
|
|
|
|
|
|
|
|
|
|
|
ignore.add("javax.mail.StoreClosedException");
|
|
|
|
ignore.add("javax.mail.StoreClosedException");
|
|
|
|
ignore.add("javax.mail.FolderClosedException");
|
|
|
|
ignore.add("javax.mail.FolderClosedException");
|
|
|
@ -179,9 +181,9 @@ public class ApplicationEx extends Application {
|
|
|
|
if (error != null) {
|
|
|
|
if (error != null) {
|
|
|
|
Throwable ex = error.getException();
|
|
|
|
Throwable ex = error.getException();
|
|
|
|
|
|
|
|
|
|
|
|
if (ex instanceof IllegalStateException &&
|
|
|
|
if (ex instanceof MessagingException &&
|
|
|
|
("Not connected".equals(ex.getMessage()) ||
|
|
|
|
(ex.getCause() instanceof IOException ||
|
|
|
|
"This operation is not allowed on a closed folder".equals(ex.getMessage())))
|
|
|
|
ex.getCause() instanceof ConnectionException))
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
if (ex instanceof MessagingException &&
|
|
|
|
if (ex instanceof MessagingException &&
|
|
|
@ -189,6 +191,11 @@ public class ApplicationEx extends Application {
|
|
|
|
"failed to create new store connection".equals(ex.getMessage())))
|
|
|
|
"failed to create new store connection".equals(ex.getMessage())))
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ex instanceof IllegalStateException &&
|
|
|
|
|
|
|
|
("Not connected".equals(ex.getMessage()) ||
|
|
|
|
|
|
|
|
"This operation is not allowed on a closed folder".equals(ex.getMessage())))
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
if (ex instanceof FileNotFoundException &&
|
|
|
|
if (ex instanceof FileNotFoundException &&
|
|
|
|
ex.getMessage() != null &&
|
|
|
|
ex.getMessage() != null &&
|
|
|
|
ex.getMessage().startsWith("Download image failed"))
|
|
|
|
ex.getMessage().startsWith("Download image failed"))
|
|
|
|