use of javax.xml.bind.ValidationEventLocator in project OpenAM by OpenRock.
the class ErrorHandlerAdaptor method propagateEvent.
private void propagateEvent(int severity, SAXParseException saxException) throws SAXException {
// get location info:
// sax locators simply use the location info embedded in the
// sax exception, dom locators keep a reference to their DOMScanner
// and call back to figure out where the error occurred.
ValidationEventLocator vel = locator.getLocation(saxException);
ValidationEventImpl ve = new ValidationEventImpl(severity, saxException.getMessage(), vel);
Exception e = saxException.getException();
if (e != null) {
ve.setLinkedException(e);
} else {
ve.setLinkedException(saxException);
}
// call the client's event handler.
host.handleEvent(ve, severity != ValidationEvent.FATAL_ERROR);
}
use of javax.xml.bind.ValidationEventLocator in project OpenAM by OpenRock.
the class ErrorHandlerAdaptor method propagateEvent.
private void propagateEvent(int severity, SAXParseException saxException) throws SAXException {
// get location info:
// sax locators simply use the location info embedded in the
// sax exception, dom locators keep a reference to their DOMScanner
// and call back to figure out where the error occurred.
ValidationEventLocator vel = locator.getLocation(saxException);
ValidationEventImpl ve = new ValidationEventImpl(severity, saxException.getMessage(), vel);
Exception e = saxException.getException();
if (e != null) {
ve.setLinkedException(e);
} else {
ve.setLinkedException(saxException);
}
// call the client's event handler.
host.handleEvent(ve, severity != ValidationEvent.FATAL_ERROR);
}
Aggregations