1 16 package org.apache.cocoon.components.validation.impl; 17 18 import org.xml.sax.ErrorHandler ; 19 import org.xml.sax.SAXException ; 20 import org.xml.sax.SAXParseException ; 21 22 28 public final class DraconianErrorHandler implements ErrorHandler { 29 30 31 public static final DraconianErrorHandler INSTANCE = new DraconianErrorHandler(); 32 33 34 private DraconianErrorHandler() { } 35 36 39 public void warning(SAXParseException exception) 40 throws SAXException { 41 throw exception; 42 } 43 44 47 public void error(SAXParseException exception) 48 throws SAXException { 49 throw exception; 50 } 51 52 55 public void fatalError(SAXParseException exception) 56 throws SAXException { 57 throw exception; 58 } 59 } 60 | Popular Tags |