mirror of
https://github.com/vanitasvitae/OmemoQRCodeGenerator.git
synced 2024-12-26 21:08:00 +01:00
Use try/multi-catch in Main
This commit is contained in:
parent
f819102ca7
commit
4358b9c158
1 changed files with 5 additions and 2 deletions
|
@ -1,11 +1,15 @@
|
|||
package de.vanitasvitae.omemoqrgenerator;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.jivesoftware.smack.SmackConfiguration;
|
||||
import org.jivesoftware.smack.SmackException;
|
||||
import org.jivesoftware.smack.XMPPException;
|
||||
import org.jivesoftware.smack.tcp.XMPPTCPConnection;
|
||||
import org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException;
|
||||
import org.jivesoftware.smackx.omemo.internal.OmemoDevice;
|
||||
import org.jivesoftware.smackx.omemo.trust.OmemoFingerprint;
|
||||
|
||||
|
@ -123,8 +127,7 @@ public class Main extends Application implements LoginCallback {
|
|||
stage.setTitle("OMEMO QR-Code Generator");
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
} catch (InterruptedException | XMPPException | SmackException | IOException | CorruptedOmemoKeyException e) {
|
||||
LOGGER.log(Level.SEVERE, "Exception in login", e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue