Reduce use of printStackTrace

This commit is contained in:
AsamK 2023-11-07 09:28:29 +01:00
parent 4e8f0a41c7
commit e61f587bfc
4 changed files with 19 additions and 15 deletions

View file

@ -948,7 +948,7 @@ public class DbusManagerImpl implements Manager {
};
connection.addSigHandler(Signal.SyncMessageReceivedV2.class, signal, this.dbusSyncHandler);
} catch (DBusException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
signal.subscribeReceive();
}
@ -968,7 +968,7 @@ public class DbusManagerImpl implements Manager {
connection.removeSigHandler(Signal.ReceiptReceivedV2.class, signal, this.dbusRcptHandler);
connection.removeSigHandler(Signal.SyncMessageReceivedV2.class, signal, this.dbusSyncHandler);
} catch (DBusException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}