home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.pdx.edu / 2014.02.ftp.ee.pdx.edu.tar / ftp.ee.pdx.edu / pub / users / Harry / compilers / p4 / FatalError.java < prev    next >
Text File  |  2005-10-25  |  631b  |  25 lines

  1. // ----------------------  FatalError  -----------------------
  2. //
  3. // This exception should be thrown to terminate the compiler.  If
  4. // a message is provided, it will be printed first.
  5. //
  6. // This class has been changed slightly from Project 2, to add
  7. // the second constructor.
  8. //
  9. // See also the subclass called "LogicError":
  10. //      FatalError -- stack trace is NOT printed
  11. //      LogicError -- stack trace is printed
  12. //
  13. // Harry Porter -- 01/15/03
  14. //              -- 02/04/04
  15. //
  16. class FatalError extends Exception {
  17.     FatalError (String message) {
  18.         super (message);
  19.     }
  20.     FatalError () {
  21.         super ();
  22.     }
  23. }
  24.  
  25.