Package org.hibernate.util.xml
Class ErrorLogger
java.lang.Object
org.hibernate.util.xml.ErrorLogger
- All Implemented Interfaces:
Serializable,ErrorHandler
Implements an
ErrorHandler that mainly just logs errors/warnings. However, it does track
the intial error it encounters and makes it available via getError().- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(SAXParseException error) voidfatalError(SAXParseException error) getError()Retrieve the initial error encountered, or null if no error was encountered.voidreset()voidwarning(SAXParseException warn)
-
Constructor Details
-
ErrorLogger
public ErrorLogger()
-
-
Method Details
-
getError
Retrieve the initial error encountered, or null if no error was encountered.- Returns:
- The initial error, or null if none.
-
error
- Specified by:
errorin interfaceErrorHandler
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler
-
warning
- Specified by:
warningin interfaceErrorHandler
-
reset
public void reset()
-