1 16 17 package com.sun.org.apache.xerces.internal.jaxp.validation; 18 19 import org.xml.sax.ErrorHandler ; 20 import org.xml.sax.SAXException ; 21 import org.xml.sax.SAXParseException ; 22 23 29 final class DraconianErrorHandler implements ErrorHandler { 30 31 34 private static final DraconianErrorHandler ERROR_HANDLER_INSTANCE 35 = new DraconianErrorHandler(); 36 37 private DraconianErrorHandler() {} 38 39 40 public static DraconianErrorHandler getInstance() { 41 return ERROR_HANDLER_INSTANCE; 42 } 43 44 45 public void warning(SAXParseException e) throws SAXException { 46 } 48 49 50 public void error(SAXParseException e) throws SAXException { 51 throw e; 52 } 53 54 55 public void fatalError(SAXParseException e) throws SAXException { 56 throw e; 57 } 58 59 } | Popular Tags |