Improve exception handling

This commit is contained in:
AsamK 2016-07-08 11:31:41 +02:00
parent 74fb7d9377
commit c0a0f89896
3 changed files with 53 additions and 52 deletions

View file

@ -265,8 +265,6 @@ public class Main {
handleAssertionError(e);
} catch (DBusExecutionException e) {
handleDBusExecutionException(e);
} catch (UntrustedIdentityException e) {
e.printStackTrace();
}
} else {
String messageText = ns.getString("message");
@ -305,8 +303,6 @@ public class Main {
System.exit(1);
} catch (DBusExecutionException e) {
handleDBusExecutionException(e);
} catch (UntrustedIdentityException e) {
e.printStackTrace();
}
}
@ -385,8 +381,6 @@ public class Main {
handleAssertionError(e);
} catch (GroupNotFoundException e) {
handleGroupNotFoundException(e);
} catch (UntrustedIdentityException e) {
e.printStackTrace();
}
break;
@ -419,8 +413,6 @@ public class Main {
handleGroupNotFoundException(e);
} catch (EncapsulatedExceptions e) {
handleEncapsulatedExceptions(e);
} catch (UntrustedIdentityException e) {
e.printStackTrace();
}
break;