public RiotParseException(String msg, long line, long column) { super(SysRIOT.fmtMessage(msg,line,column)); this.message = msg ; this.line = line ; this.column = column ; }
/** report an error */ public void logError(String message, long line, long col) { if ( log != null ) log.error(fmtMessage(message, line, col)) ; }
/** report a warning */ public void logWarning(String message, long line, long col) { if ( log != null ) log.warn(fmtMessage(message, line, col)) ; }
/** report a warning - do not carry on */ @Override public void warning(String message, long line, long col) { throw new RiotException(fmtMessage(message, line, col)) ; }
/** report an error - do not carry on */ @Override public void error(String message, long line, long col) { throw new RiotException(fmtMessage(message, line, col)) ; }
@Override public void fatal(String message, long line, long col) { throw new RiotException(fmtMessage(message, line, col)) ; } }
private void output(String message, long line, long col, String typeName, String className) { try { String str = fmtMessage(message, line, col) ; //String str = typeName+": "+message ; str = htmlQuote(str) ; out.print("<div class=\""+className+"\">") ; out.print(str) ; out.print("</div>") ; } catch (IOException ex) { IO.exception(ex) ; } } }
/** report an error */ @Override public void error(String message, long line, long col) { logError(message, line, col) ; throw new RiotException(fmtMessage(message, line, col)) ; }
/** report a fatal error - does not return */ @Override public void fatal(String message, long line, long col) { logFatal(message, line, col) ; throw new RiotException(fmtMessage(message, line, col)) ; } }
@Override public void fatal(String message, long line, long col) { logFatal(message, line, col) ; throw new RiotException(fmtMessage(message, line, col)) ; } }
/** report an error */ @Override public void error(String message, long line, long col) { logError(message, line, col) ; this.errorCount++; if (this.failOnError) throw new RiotException(fmtMessage(message, line, col)) ; }
@Override public void fatal(String message, long line, long col) { logFatal(message, line, col) ; this.errorCount++; throw new RiotException(fmtMessage(message, line, col)) ; }
/** report a warning - do not carry on */ @Override public void warning(String message, long line, long col) { logWarning(message, line, col) ; throw new RiotException(fmtMessage(message, line, col)) ; }
/** report an error - do not carry on */ @Override public void error(String message, long line, long col) { logError(message, line, col) ; throw new RiotException(fmtMessage(message, line, col)) ; }
/** report an error */ @Override public void error(String message, long line, long col) { logError(message, line, col) ; throw new RiotException(fmtMessage(message, line, col)) ; }
/** report a warning */ @Override public void warning(String message, long line, long col) { logWarning(message, line, col) ; this.warningCount++; if (this.failOnWarning) throw new RiotException(fmtMessage(message, line, col)) ; }
@Override public void fatal(String message, long line, long col) { logFatal(message, line, col) ; throw new RiotException(SysRIOT.fmtMessage(message, line, col)) ; } }
@Override public void fatal(String message, long line, long col) { throw new RiotException(fmtMessage(message, line, col)) ; } } ;
/** report a warning - do not carry on */ @Override public void warning(String message, long line, long col) { throw new RiotException(fmtMessage(message, line, col)) ; }
/** report an error - do not carry on */ @Override public void error(String message, long line, long col) { throw new RiotException(fmtMessage(message, line, col)) ; }