Search in sources :

Example 1 with SyntaxError

use of dyvilx.tools.parsing.marker.SyntaxError in project Dyvil by Dyvil.

the class ParserManager method reportError.

protected void reportError(SourcePosition position, Throwable ex) {
    final Marker marker = new SyntaxError(position, this.markers.getI18n().getString("parser.error", position.toString(), ex.getLocalizedMessage()));
    marker.addError(ex);
    this.markers.add(marker);
}
Also used : SyntaxError(dyvilx.tools.parsing.marker.SyntaxError) Marker(dyvilx.tools.parsing.marker.Marker)

Aggregations

Marker (dyvilx.tools.parsing.marker.Marker)1 SyntaxError (dyvilx.tools.parsing.marker.SyntaxError)1