Code example for SAXParseException

Methods: getMessagegetColumnNumbergetLineNumbergetPublicIdgetSystemId

0
        private static final Log __log = LogFactory.getLog(BOMSAXErrorHandler.class);
         
    	private boolean ok = true;
    	 
    	private String formatException(SAXParseException exception) {
    		return exception.getPublicId() + ":" + exception.getSystemId() + ":" + exception.getLineNumber() + ":" + exception.getColumnNumber() + ":" + exception.getMessage();
    	} 
    	 
    	public boolean wasOK() { return ok; }
		public void error(SAXParseException exception) throws SAXException {
			ok=false;
			__log.error(formatException(exception));
		} 
 
		public void fatalError(SAXParseException exception) throws SAXException {
			ok=false;
			__log.fatal(formatException(exception));
		} 
 
		public void warning(SAXParseException exception) throws SAXException {
Contextual code suggestions in your IDE  Get Codota for Java