Code example for SAXParseException

Methods: getColumnNumber, getLineNumber, getLocalizedMessage, getSystemId

0
		 *            message. 
		 * @param severity 
		 *            The severity of the validation message. 
		 */ 
		protected void addValidationMessage(SAXParseException exception, int severity) {
			if (exception.getSystemId() != null) {
				if (severity == WARNING) {
					fValidationInfo.addWarning(exception.getLocalizedMessage(), exception.getLineNumber(), exception.getColumnNumber(), exception.getSystemId());
				} 
				else { 
					fValidationInfo.addError(exception.getLocalizedMessage(), exception.getLineNumber(), exception.getColumnNumber(), exception.getSystemId());
				} 
			} 
		} 
 
		/* 
		 * (non-Javadoc) 
		 *  
		 * @see org.xml.sax.ErrorHandler#error(org.xml.sax.SAXParseException) 
		 */ 
		public void error(SAXParseException exception) throws SAXException {