if (endcolumn == -1) {
endcolumn = context.length();
}
return new CompilerError(file, true, line, startcolumn, line, endcolumn, message);
}
catch (NoSuchElementException nse) {
// TODO: exception?
return new CompilerError("no more tokens - could not parse error message: " + error, true);
}
catch (Exception nse) {
// TODO: exception?
return new CompilerError("could not parse error message: " + error, true);
}
}