Class ErrorReporterForTask
Object
org.anchoranalysis.experiment.task.ErrorReporterForTask
- All Implemented Interfaces:
ErrorReporter
public class ErrorReporterForTask extends Object implements ErrorReporter
An error-reporter that replaces particular errors/exceptions with user-friendly messages.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ErrorReporterForTask(MessageLogger logger)Create to use a particular logger to report errors. -
Method Summary
Modifier and Type Method Description booleanhasWarningOccurred()voidrecordError(Class<?> classOriginating, String message)voidrecordError(Class<?> classOriginating, String message, Throwable exc)voidrecordError(Class<?> classOriginating, Throwable exc)voidrecordWarning(String message)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.anchoranalysis.core.log.error.ErrorReporter
recordErrorFormatted, recordWarningFormatted
-
Constructor Details
-
ErrorReporterForTask
Create to use a particular logger to report errors.- Parameters:
logger- the logger.
-
-
Method Details
-
recordError
- Specified by:
recordErrorin interfaceErrorReporter
-
recordError
- Specified by:
recordErrorin interfaceErrorReporter
-
recordError
- Specified by:
recordErrorin interfaceErrorReporter
-
recordWarning
- Specified by:
recordWarningin interfaceErrorReporter
-
hasWarningOccurred
public boolean hasWarningOccurred()- Specified by:
hasWarningOccurredin interfaceErrorReporter
-