OSDN Git Service

toString実装
[coroid/inqubus.git] / frontend / src / saccubus / Saccubus.java
index 4310f3e..f1d3b47 100644 (file)
@@ -1,6 +1,8 @@
 package saccubus;
 
 import java.io.IOException;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 import javax.swing.SwingUtilities;
 import javax.swing.UIManager;
 
@@ -28,6 +30,8 @@ import yukihane.inqubus.gui.MainFrame;
  * @version 1.0
  */
 public class Saccubus {
+
+    private static final Logger logger = Logger.getLogger(Saccubus.class.getName());
        boolean packFrame = false;
 
        /**
@@ -58,7 +62,7 @@ public class Saccubus {
         * @param args
         *            String[]
         */
-       public static void main(String[] args) throws IOException {
+       public static void main(String[] args) throws Exception {
                //引数が有る場合はCUIで起動
                if (args.length > 0) {
             Prompt.main(args);
@@ -71,7 +75,7 @@ public class Saccubus {
                                        UIManager.setLookAndFeel(UIManager
                                                        .getSystemLookAndFeelClassName());
                                } catch (Exception exception) {
-                                       exception.printStackTrace();
+                                       logger.log(Level.SEVERE, null, exception);
                                }
 
                                new Saccubus();