Package org.marc4j.helpers
Class ErrorHandlerImpl
- java.lang.Object
-
- org.marc4j.helpers.ErrorHandlerImpl
-
- All Implemented Interfaces:
ErrorHandler
public class ErrorHandlerImpl extends Object implements ErrorHandler
Implements the
ErrorHandler
interface to report about warnings and errors that occur during the parsing of a MARC record.- Author:
- Bas Peters
- See Also:
ErrorHandler
-
-
Constructor Summary
Constructors Constructor Description ErrorHandlerImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(MarcReaderException exception)
Receive notification of an error.void
fatalError(MarcReaderException exception)
Receive notification of a fatal error.static String
printMarcException(String label, MarcReaderException e)
void
warning(MarcReaderException exception)
Receive notification of a warning.
-
-
-
Method Detail
-
warning
public void warning(MarcReaderException exception)
Description copied from interface:ErrorHandler
Receive notification of a warning.
- Specified by:
warning
in interfaceErrorHandler
-
error
public void error(MarcReaderException exception)
Description copied from interface:ErrorHandler
Receive notification of an error.
- Specified by:
error
in interfaceErrorHandler
-
fatalError
public void fatalError(MarcReaderException exception)
Description copied from interface:ErrorHandler
Receive notification of a fatal error.
- Specified by:
fatalError
in interfaceErrorHandler
-
printMarcException
public static String printMarcException(String label, MarcReaderException e)
-
-