de.smartics.xml.handler
Class DefaultErrorHandler

Package class diagram package DefaultErrorHandler
java.lang.Object
  extended by de.smartics.xml.handler.DefaultErrorHandler
All Implemented Interfaces:
ErrorListener, ErrorHandler

public class DefaultErrorHandler
     
     
extends Object
implements ErrorHandler, ErrorListener

Implements SAX error handler for default reporting.


Constructor Summary
DefaultErrorHandler()
          Convenience constructor for writing to System.err.
DefaultErrorHandler(PrintStream messageStream)
          Convenience constructor passing in a stream, not rethrowing exceptions.
DefaultErrorHandler(PrintWriter messageWriter)
          Constructor constructor.
 
Method Summary
 void error(SAXParseException exception)
           
 void error(TransformerException exception)
           
 void fatalError(SAXParseException exception)
           
 void fatalError(TransformerException exception)
           
 void warning(SAXParseException exception)
           
 void warning(TransformerException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorHandler

public DefaultErrorHandler(PrintStream messageStream)
Convenience constructor passing in a stream, not rethrowing exceptions.

Parameters:
messageStream - the stream to write messages to.

DefaultErrorHandler

public DefaultErrorHandler()
Convenience constructor for writing to System.err.


DefaultErrorHandler

public DefaultErrorHandler(PrintWriter messageWriter)
Constructor constructor.

Parameters:
messageWriter - the writer to write fatals, errors and warnings to.
Method Detail

warning

public void warning(TransformerException exception)
             throws TransformerException
Specified by:
warning in interface ErrorListener
Throws:
TransformerException

error

public void error(TransformerException exception)
           throws TransformerException
Specified by:
error in interface ErrorListener
Throws:
TransformerException

fatalError

public void fatalError(TransformerException exception)
                throws TransformerException
Specified by:
fatalError in interface ErrorListener
Throws:
TransformerException

warning

public void warning(SAXParseException exception)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Throws:
SAXException

error

public void error(SAXParseException exception)
           throws SAXException
Specified by:
error in interface ErrorHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException exception)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException


Copyright © 2010-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.