Author: thomasobrien95
Date: Wed Apr 22 08:50:11 2009
New Revision: 2986
Modified:
trunk/src/ca/sqlpower/architect/CoreProject.java
Log:
Added the rethrow boolean to the LoadSQLObjectAttributes which was
added to the library. Loading does not need to rethrow saved exceptions.
Modified: trunk/src/ca/sqlpower/architect/CoreProject.java
==============================================================================
--- trunk/src/ca/sqlpower/architect/CoreProject.java (original)
+++ trunk/src/ca/sqlpower/architect/CoreProject.java Wed Apr 22 08:50:11
2009
@@ -85,7 +85,11 @@
private static void LoadSQLObjectAttributes(SQLObject obj, Attributes
attr) {
String message = attr.getValue("sql-exception");
if (message != null) {
- obj.setChildrenInaccessibleReason(new
SQLObjectException(message));
+ try {
+ obj.setChildrenInaccessibleReason(new
SQLObjectException(message), false);
+ } catch (SQLObjectException e) {
+ throw new AssertionError("Unreachable code");
+ }
}
}