}
}
private void messageWithRange(MessageType type, Exception message,
int oneBasedLine, int oneBasedColumn) throws SAXException {
Location rangeLast = sourceCode.newLocatorLocation(oneBasedLine,
oneBasedColumn);
if (!sourceCode.isWithinKnownSource(rangeLast)) {
messageWithoutExtract(type, message, null, oneBasedLine,
oneBasedColumn);
return;
}
Location rangeStart = sourceCode.rangeStartForRangeLast(rangeLast);
startMessage(type, null, rangeStart.getLine() + 1,
rangeStart.getColumn() + 1, oneBasedLine, oneBasedColumn, false);
messageText(message);
SourceHandler sourceHandler = emitter.startSource();
if (sourceHandler != null) {
sourceCode.rangeEndError(rangeStart, rangeLast, sourceHandler);
}