svn commit: r14428 - trunk/src/argouml-app/src/org/argouml/profile/ReaderModelLoader.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2008-04-20 18:48:01-0700
New Revision: 14428

Modified:
   trunk/src/argouml-app/src/org/argouml/profile/ReaderModelLoader.java

Log:
Rethrow wrapped exception and log later together in one chain

Modified: trunk/src/argouml-app/src/org/argouml/profile/ReaderModelLoader.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/profile/ReaderModelLoader.java?view=diff&rev=14428&p1=trunk/src/argouml-app/src/org/argouml/profile/ReaderModelLoader.java&p2=trunk/src/argouml-app/src/org/argouml/profile/ReaderModelLoader.java&r1=14427&r2=14428
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/profile/ReaderModelLoader.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/profile/ReaderModelLoader.java	2008-04-20 18:48:01-0700
@@ -93,8 +93,7 @@
                 Collection elements = xmiReader.parse(inputSource, true);
                 return elements;
             } catch (UmlException e) {
-                LOG.error("Exception while loading profile ", e);
-                throw new ProfileException("Invalid XMI data!");
+                throw new ProfileException("Invalid XMI data!", e);
             }
         }
         LOG.error("Profile not found");
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.