org.hibernate.internal.util.xml
Class ErrorLogger
java.lang.Object
   org.hibernate.internal.util.xml.ErrorLogger
org.hibernate.internal.util.xml.ErrorLogger
- All Implemented Interfaces: 
- Serializable, ErrorHandler
- public class ErrorLogger 
- extends Object- implements ErrorHandler, 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().
- See Also:
- Serialized Form
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ErrorLogger
public ErrorLogger()
getError
public 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(SAXParseException error)
- 
 
- 
- Specified by:
- errorin interface- ErrorHandler
 
- 
 
fatalError
public void fatalError(SAXParseException error)
- 
 
- 
- Specified by:
- fatalErrorin interface- ErrorHandler
 
- 
 
warning
public void warning(SAXParseException warn)
- 
 
- 
- Specified by:
- warningin interface- ErrorHandler
 
- 
 
reset
public void reset()
- 
 
- 
 
Copyright © 2001-2012 Red Hat, Inc.  All Rights Reserved.