internal_error.java :  » Byte-Code » Jasmin-2.4 » java_cup » Java Open Source

Java Open Source » Byte Code » Jasmin 2.4 
Jasmin 2.4 » java_cup » internal_error.java

package java_cup;

/** Exception subclass for reporting internal errors in JavaCup. */
public class internal_error extends Exception
  {
    /** Constructor with a message */
    public internal_error(String msg)
      {
  super(msg);
      }

    /** Method called to do a forced error exit on an internal error
  for cases when we can't actually throw the exception.  */
    public void crash()
      {
  System.err.println("JavaCUP Fatal Internal Error Detected");
  System.err.println(getMessage());
  printStackTrace();
  System.exit(-1);
      }
  };
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.