{
StringBuilder builder = new StringBuilder ();
HtmlizedException exc = (HtmlizedException) this.InnerException;
+#if TARGET_J2EE
+ bool isParseException = false;
+ bool isCompileException = false;
+#else
bool isParseException = exc is ParseException;
bool isCompileException = (!isParseException && exc is CompilationException);
+#endif
WriteFileTop (builder, exc.Title);
builder.AppendFormat ("<h2><em>{0}</em></h2>\r\n", exc.Title);
bool needToggleJS = false;
+#if !TARGET_J2EE
if (isCompileException) {
CompilationException cex = exc as CompilationException;
StringCollection output = cex.CompilerOutput;
WriteExpandableBlock (builder, "Show Detailed Compiler Output", sb.ToString ());
}
}
+#endif
if (longCodeVersion != null && longCodeVersion.Length > 0) {
WriteExpandableBlock (builder, "Show Complete Compilation Source", longCodeVersion.ToString ());
static void WriteSource (StringBuilder builder, StringBuilder longVersion, HtmlizedException e)
{
builder.Append ("<code><pre>");
- WritePageSource (builder, longVersion, e);
+ WritePageSource (builder, e);
builder.Append ("</code></pre>\r\n");
}