org.hibernate.util.xml
Class ErrorLogger
java.lang.Object
org.hibernate.util.xml.ErrorLogger
- All Implemented Interfaces:
- java.io.Serializable, org.xml.sax.ErrorHandler
public class ErrorLogger
- extends java.lang.Object
- implements org.xml.sax.ErrorHandler, java.io.Serializable
Implements an ErrorHandler
that mainly just logs errors/warnings. However, it does track
the intial error it encounters and makes it available via getError()
.
- Author:
- Steve Ebersole
- See Also:
- Serialized Form
Method Summary |
void |
error(org.xml.sax.SAXParseException error)
|
void |
fatalError(org.xml.sax.SAXParseException error)
|
org.xml.sax.SAXParseException |
getError()
Retrieve the initial error encountered, or null if no error was encountered. |
void |
reset()
|
void |
warning(org.xml.sax.SAXParseException warn)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorLogger
public ErrorLogger()
getError
public org.xml.sax.SAXParseException getError()
- Retrieve the initial error encountered, or null if no error was encountered.
- Returns:
- The initial error, or null if none.
error
public void error(org.xml.sax.SAXParseException error)
-
- Specified by:
error
in interface org.xml.sax.ErrorHandler
fatalError
public void fatalError(org.xml.sax.SAXParseException error)
-
- Specified by:
fatalError
in interface org.xml.sax.ErrorHandler
warning
public void warning(org.xml.sax.SAXParseException warn)
-
- Specified by:
warning
in interface org.xml.sax.ErrorHandler
reset
public void reset()
Copyright © 2013. All Rights Reserved.