--- a/langtools/src/share/classes/com/sun/tools/javac/util/FatalError.java Fri Aug 27 17:21:17 2010 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/util/FatalError.java Fri Aug 27 17:59:08 2010 -0700
@@ -37,12 +37,6 @@
public class FatalError extends Error {
private static final long serialVersionUID = 0;
- /** Construct a <code>FatalError</code> with no detail message.
- */
- public FatalError() {
- super();
- }
-
/** Construct a <code>FatalError</code> with the specified detail message.
* @param d A diagnostic containing the reason for failure.
*/
@@ -50,6 +44,15 @@
super(d.toString());
}
+ /** Construct a <code>FatalError</code> with the specified detail message
+ * and cause.
+ * @param d A diagnostic containing the reason for failure.
+ * @param t An exception causing the error
+ */
+ public FatalError(JCDiagnostic d, Throwable t) {
+ super(d.toString(), t);
+ }
+
/** Construct a <code>FatalError</code> with the specified detail message.
* @param s An English(!) string describing the failure, typically because
* the diagnostic resources are missing.