Menu

[r976]: / java_cup / internal_error.java  Maximize  Restore  History

Download this file

23 lines (19 with data), 551 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
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);
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.