Class ErrorReporterForTask
Object
ErrorReporterForTask
- All Implemented Interfaces:
ErrorReporter
An error-reporter that replaces particular errors/exceptions with user-friendly messages.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionErrorReporterForTask(MessageLogger logger) Create to use a particular logger to report errors. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidrecordError(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
-