1 31 36 37 package com.hp.hpl.jena.rdf.arp; 38 39 44 class DefaultErrorHandler implements org.xml.sax.ErrorHandler { 45 46 47 public DefaultErrorHandler() { 48 } 49 50 public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException { 51 System.err.println("Error: " + ParseException.formatMessage(e)); 52 } 53 54 public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException { 55 System.err.println("Fatal Error: " + ParseException.formatMessage(e)); 56 throw e; 57 } 58 59 public void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException { 60 System.err.println("Warning: " + ParseException.formatMessage(e)); 61 62 } 63 64 } 65 | Popular Tags |