svn commit: r17403 - trunk/src/argouml-app/src/org/argouml/uml/ui/ElementPropPanelFactory.java
Bob Tarling <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: bobtarling
Date: 2009-10-18 19:24:50-0700
New Revision: 17403
Modified:
trunk/src/argouml-app/src/org/argouml/uml/ui/ElementPropPanelFactory.java
Log:
Add more detail to exception when it occurs
Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/ElementPropPanelFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/ElementPropPanelFactory.java?view=diff&pathrev=17403&r1=17402&r2=17403
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/ElementPropPanelFactory.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/ElementPropPanelFactory.java 2009-10-18 19:24:50-0700
@@ -219,7 +219,8 @@
} else if (Model.getFacade().isADependency(element)) {
return new PropPanelDependency();
}
- throw new IllegalArgumentException("Unsupported Element type");
+ throw new IllegalArgumentException("Unsupported Element type "
+ + element.getClass().getName());
}
return null;
}
@@ -271,7 +272,8 @@
// are Classifiers as well as Relationships, but we test for Classifier
// first.
- throw new IllegalArgumentException("Unsupported Element type");
+ throw new IllegalArgumentException("Unsupported Element type "
+ + element.getClass().getName());
}
private PropPanelRelationship getRelationshipPropPanel(Object element) {
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2408790
To unsubscribe from this discussion, e-mail: [[email protected]].