예제 #1
0
파일: Output.java 프로젝트: pgoelz/xfp
 /** Posts a fatal error. This causes the system to exit. */
 public synchronized void fatal(String s, Parameter p1, Parameter p2) {
   println("FATAL ERROR:\n" + s, ALL_LOGS, true);
   if (p1 != null) println("PARAMETER: " + p1, ALL_LOGS, true);
   if (p2 != null && p1 != null) println("     ALSO: " + p2, ALL_LOGS, true);
   else println("PARAMETER: " + p2, ALL_LOGS, true);
   exitWithError();
 }
예제 #2
0
파일: Output.java 프로젝트: pgoelz/xfp
 /** Exits with a fatal error if the error flag has been raised. */
 public synchronized void exitIfErrors() {
   if (errors) {
     println("SYSTEM EXITING FROM ERRORS\n", ALL_LOGS, true);
     exitWithError();
   }
 }
예제 #3
0
파일: Output.java 프로젝트: pgoelz/xfp
 /** Posts a fatal error. This causes the system to exit. */
 public synchronized void fatal(String s) {
   println("FATAL ERROR:\n" + s, ALL_LOGS, true);
   exitWithError();
 }