Hellboyandso

domain_AppLauncher.java

Dec 12th, 2016
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1. package domain;
  2.  
  3. import java.io.IOException;
  4.  
  5. import javax.swing.JOptionPane;
  6.  
  7. import com.fasterxml.jackson.core.JsonParseException;
  8. import com.fasterxml.jackson.databind.JsonMappingException;
  9.  
  10. import exceptions.DomainException;
  11.  
  12. public class AppLauncher {
  13.  
  14.     public static void main(String[] args) {
  15.         App app = new App();
  16.         try {
  17.             app.showWelcomeScreen();
  18.         } catch (DomainException e) {
  19.             JOptionPane.showMessageDialog(null, e.getMessage());
  20.         } catch (JsonParseException e) {
  21.             JOptionPane.showMessageDialog(null, e.getMessage());
  22.         } catch (JsonMappingException e) {
  23.             JOptionPane.showMessageDialog(null, e.getMessage());
  24.         } catch (IOException e) {
  25.             JOptionPane.showMessageDialog(null, e.getMessage());
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment