Now handled exceptions are always shown in logcat

This commit is contained in:
Juan Miguel Boyero Corral 2013-05-03 17:52:45 +02:00
parent 2f6bdfc8eb
commit c9729dadce
2 changed files with 6 additions and 6 deletions

View File

@ -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);
}
}

View File

@ -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