use of org.eclipse.xtext.parser.antlr.ISyntaxErrorMessageProvider.IValueConverterErrorContext in project xtext-core by eclipse.
the class AbstractInternalAntlrParser method handleValueConverterException.
protected void handleValueConverterException(ValueConverterException vce) {
hadErrors = true;
Exception cause = (Exception) vce.getCause();
if (vce != cause) {
IValueConverterErrorContext errorContext = createValueConverterErrorContext(vce);
currentError = syntaxErrorProvider.getSyntaxErrorMessage(errorContext);
if (vce.getNode() == null) {
appendError(currentNode.getLastChild());
} else {
appendError(vce.getNode());
}
} else {
throw new RuntimeException(vce);
}
}
Aggregations