langtools/src/share/classes/com/sun/tools/javac/util/FatalError.java
changeset 6581 f58f0ce45802
parent 5847 1908176fd6e3
child 7681 1f0819a3341f
equal deleted inserted replaced
6580:d3d578d22cc7 6581:f58f0ce45802
    35  *  deletion without notice.</b>
    35  *  deletion without notice.</b>
    36  */
    36  */
    37 public class FatalError extends Error {
    37 public class FatalError extends Error {
    38     private static final long serialVersionUID = 0;
    38     private static final long serialVersionUID = 0;
    39 
    39 
    40     /** Construct a <code>FatalError</code> with no detail message.
       
    41      */
       
    42     public FatalError() {
       
    43         super();
       
    44     }
       
    45 
       
    46     /** Construct a <code>FatalError</code> with the specified detail message.
    40     /** Construct a <code>FatalError</code> with the specified detail message.
    47      *  @param d A diagnostic containing the reason for failure.
    41      *  @param d A diagnostic containing the reason for failure.
    48      */
    42      */
    49     public FatalError(JCDiagnostic d) {
    43     public FatalError(JCDiagnostic d) {
    50         super(d.toString());
    44         super(d.toString());
       
    45     }
       
    46 
       
    47     /** Construct a <code>FatalError</code> with the specified detail message
       
    48      * and cause.
       
    49      *  @param d A diagnostic containing the reason for failure.
       
    50      *  @param t An exception causing the error
       
    51      */
       
    52     public FatalError(JCDiagnostic d, Throwable t) {
       
    53         super(d.toString(), t);
    51     }
    54     }
    52 
    55 
    53     /** Construct a <code>FatalError</code> with the specified detail message.
    56     /** Construct a <code>FatalError</code> with the specified detail message.
    54      *  @param s An English(!) string describing the failure, typically because
    57      *  @param s An English(!) string describing the failure, typically because
    55      *           the diagnostic resources are missing.
    58      *           the diagnostic resources are missing.