public class

ErrorLogger

extends Object
implements Serializable ErrorHandler
java.lang.Object
   ↳ org.hibernate.util.xml.ErrorLogger

Class Overview

Implements an ErrorHandler that mainly just logs errors/warnings. However, it does track the intial error it encounters and makes it available via getError().

Summary

Public Constructors
ErrorLogger()
Public Methods
void error(SAXParseException error)
void fatalError(SAXParseException error)
SAXParseException getError()
Retrieve the initial error encountered, or null if no error was encountered.
void reset()
void warning(SAXParseException warn)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.xml.sax.ErrorHandler

Public Constructors

public ErrorLogger ()

Public Methods

public void error (SAXParseException error)

public void fatalError (SAXParseException error)

public SAXParseException getError ()

Retrieve the initial error encountered, or null if no error was encountered.

Returns
  • The initial error, or null if none.

public void reset ()

public void warning (SAXParseException warn)