diagnostics for IDEA-60370

This commit is contained in:
Dmitry Jemerov
2010-11-25 21:40:39 +03:00
parent 3c0a4e6fee
commit f2d5e59798
3 changed files with 7 additions and 2 deletions
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<module relativePaths="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_3" inherit-compiler-output="true">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_4" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
@@ -23,6 +23,11 @@ public class CodeGenerationException extends Exception{
myComponentId = componentId;
}
public CodeGenerationException(final String componentId, final String message, final Throwable cause) {
super(message, cause);
myComponentId = componentId;
}
public String getComponentId() {
return myComponentId;
}
@@ -211,7 +211,7 @@ public final class Utils {
rootContainer = nestedFormLoader.loadForm(formName);
}
catch (Exception e) {
throw new CodeGenerationException(null, "Error loading nested form: " + e.getMessage());
throw new CodeGenerationException(null, "Error loading nested form: " + e.getMessage(), e);
}
final Set thisFormNestedForms = new HashSet();
final CodeGenerationException[] validateExceptions = new CodeGenerationException[1];