Now handled exceptions are always shown in logcat
This commit is contained in:
parent
2f6bdfc8eb
commit
c9729dadce
|
@ -470,8 +470,8 @@ public abstract class Module extends MenuActivity {
|
|||
* @throws IllegalAccessException
|
||||
* @throws XmlPullParserException
|
||||
*/
|
||||
protected void sendRequest(Class<?> cl, boolean simple) throws IOException,
|
||||
SoapFault, IllegalAccessException, InstantiationException,
|
||||
protected void sendRequest(Class<?> cl, boolean simple) throws SoapFault,
|
||||
IOException, IllegalAccessException, InstantiationException,
|
||||
XmlPullParserException {
|
||||
|
||||
// Variables for URL splitting
|
||||
|
@ -522,7 +522,7 @@ public abstract class Module extends MenuActivity {
|
|||
* @param sendException
|
||||
*/
|
||||
protected void error(String tag, String message, Exception ex, boolean sendException) {
|
||||
errorDialog = new AlertDialog.Builder(this)
|
||||
errorDialog = new AlertDialog.Builder(Module.this)
|
||||
.setTitle(R.string.title_error_dialog)
|
||||
.setMessage(message)
|
||||
.setNeutralButton(R.string.close_dialog,
|
||||
|
@ -532,11 +532,11 @@ public abstract class Module extends MenuActivity {
|
|||
}
|
||||
}).setIcon(R.drawable.erroricon).show();
|
||||
|
||||
if (!isDebuggable && (ex != null)) {
|
||||
if (ex != null) {
|
||||
ex.printStackTrace();
|
||||
|
||||
// Send exception details to Bugsense
|
||||
if(sendException) {
|
||||
if(!isDebuggable && sendException) {
|
||||
BugSenseHandler.sendExceptionMessage(tag, message, ex);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -186,7 +186,7 @@ public class NotificationsSyncAdapterService extends Service {
|
|||
}
|
||||
|
||||
protected static void sendRequest(boolean simple)
|
||||
throws IOException, SoapFault, IllegalAccessException, InstantiationException, XmlPullParserException {
|
||||
throws SoapFault, IOException, IllegalAccessException, InstantiationException, XmlPullParserException {
|
||||
|
||||
/**
|
||||
* Use of KeepAliveHttpsTransport deals with the problems with the Android ssl libraries having trouble
|
||||
|
|
Loading…
Reference in New Issue
Block a user