org.apache.cocoon.components.validation.impl
Class DraconianErrorHandler

java.lang.Object
  extended by org.apache.cocoon.components.validation.impl.DraconianErrorHandler
All Implemented Interfaces:
ErrorHandler

public final class DraconianErrorHandler
extends Object
implements ErrorHandler

An implementation of the ErrorHandler interface re-throwing all exceptions passed to it.


Field Summary
static DraconianErrorHandler INSTANCE
          The singleton instance of the DraconianErrorHandler.
 
Method Summary
 void error(SAXParseException exception)
          Simply re-throw the specified SAXParseException.
 void fatalError(SAXParseException exception)
          Simply re-throw the specified SAXParseException.
 void warning(SAXParseException exception)
          Simply re-throw the specified SAXParseException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DraconianErrorHandler INSTANCE

The singleton instance of the DraconianErrorHandler.

Method Detail

warning

public void warning(SAXParseException exception)
             throws SAXException

Simply re-throw the specified SAXParseException.

Specified by:
warning in interface ErrorHandler
Throws:
SAXException

error

public void error(SAXParseException exception)
           throws SAXException

Simply re-throw the specified SAXParseException.

Specified by:
error in interface ErrorHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException exception)
                throws SAXException

Simply re-throw the specified SAXParseException.

Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.