svn commit: r12724 - trunk/src_new/org/argouml/application/Main.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-05-30 11:58:00-0700
New Revision: 12724

Modified:
   trunk/src_new/org/argouml/application/Main.java

Log:
Catch class load errors during Model subsystem instantiation

Modified: trunk/src_new/org/argouml/application/Main.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/application/Main.java?view=diff&rev=12724&p1=trunk/src_new/org/argouml/application/Main.java&p2=trunk/src_new/org/argouml/application/Main.java&r1=12723&r2=12724
==============================================================================
--- trunk/src_new/org/argouml/application/Main.java	(original)
+++ trunk/src_new/org/argouml/application/Main.java	2007-05-30 11:58:00-0700
@@ -273,6 +273,8 @@
                 impl = (ModelImplementation) implType.newInstance();
             } catch (ClassNotFoundException e) {
                 reportError(e);
+            } catch (NoClassDefFoundError e) {
+                reportError(e);
             } catch (InstantiationException e) {
                 reportError(e);
             } catch (IllegalAccessException e) {
@@ -445,7 +447,7 @@
     /**
      * @param e The exception to be logged.
      */
-    private static void reportError(Exception e) {
+    private static void reportError(Throwable e) {
         LOG.fatal("Model component not correctly initialized.", e);
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.