at.gv.egovernment.moa.util
Class MOAErrorHandler
java.lang.Object
|
+--org.apache.xml.utils.DefaultErrorHandler
|
+--at.gv.egovernment.moa.util.MOAErrorHandler
- All Implemented Interfaces:
- org.xml.sax.ErrorHandler, javax.xml.transform.ErrorListener
- public class MOAErrorHandler
- extends org.apache.xml.utils.DefaultErrorHandler
An ErrorHandler
that logs a message and throws a
SAXException
upon error
and fatal
parsing errors.
- Author:
- Patrick Peck, Sven Aigner
Method Summary |
void |
error(org.xml.sax.SAXParseException exception)
Logs a warning and rethrows the exception . |
void |
fatalError(org.xml.sax.SAXParseException exception)
Logs a warning and rethrows the exception . |
void |
warning(org.xml.sax.SAXParseException exception)
Logs a warning message. |
Methods inherited from class org.apache.xml.utils.DefaultErrorHandler |
ensureLocationSet, error, fatalError, printLocation, printLocation, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MOAErrorHandler
public MOAErrorHandler()
warning
public void warning(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
- Logs a warning message.
- Overrides:
warning
in class org.apache.xml.utils.DefaultErrorHandler
- See Also:
ErrorHandler.warning(SAXParseException)
error
public void error(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
- Logs a warning and rethrows the
exception
.
- Overrides:
error
in class org.apache.xml.utils.DefaultErrorHandler
- See Also:
ErrorHandler.error(SAXParseException)
fatalError
public void fatalError(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
- Logs a warning and rethrows the
exception
.
- Overrides:
fatalError
in class org.apache.xml.utils.DefaultErrorHandler
- See Also:
ErrorHandler.fatalError(SAXParseException)