edu.cmu.sei.aadl.modelsupport.errorreporting
Class AbstractErrorReporterManager
java.lang.Object
edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractErrorReporterManager
- All Implemented Interfaces:
- ErrorReporterManager, InternalErrorReporter
- Direct Known Subclasses:
- AnalysisErrorReporterManager, ParseErrorReporterManager
public abstract class AbstractErrorReporterManager
- extends java.lang.Object
- implements ErrorReporterManager
Abstract implementation of
edu.cmu.sei.aadl.model.pluginsupport.ErrorReporterManager
that
delegates The implementation of the methods internalError(Exception)
,
internalError(String)
, and getNumInternalErrors()
to
another edu.cmu.sei.aadl.model.pluginsupport.InternalErrorReporter
object. This is done to acheive a sort of "mix-in" implementation, because
the edu.cmu.sei.aadl.model.pluginsupport.ParseErrorReporterManager
and edu.cmu.sei.aadl.model.pluginsupport.AnalysisErrorReporterManager
in general have quite different (although similar) implementations, although
it is likely that in any given environment they will want to share the
implementation of the internal error reporter (e.g., to log events to the
Eclipse "error" view).
- Author:
- aarong
Method Summary |
int |
getNumInternalErrors()
Get the number of internal errors reported with this error manager
since it was created. |
void |
internalError(java.lang.Exception e)
Report an error in the operation of the client task itself. |
void |
internalError(java.lang.String message)
Report an error in the operation of the client task itself. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractErrorReporterManager
protected AbstractErrorReporterManager(InternalErrorReporter ier)
internalError
public void internalError(java.lang.String message)
- Description copied from interface:
InternalErrorReporter
- Report an error in the operation of the client task itself.
- Specified by:
internalError
in interface InternalErrorReporter
- Parameters:
message
- The error message.
internalError
public void internalError(java.lang.Exception e)
- Description copied from interface:
InternalErrorReporter
- Report an error in the operation of the client task itself.
- Specified by:
internalError
in interface InternalErrorReporter
- Parameters:
e
- The exception that caused the error.
getNumInternalErrors
public int getNumInternalErrors()
- Description copied from interface:
InternalErrorReporter
- Get the number of internal errors reported with this error manager
since it was created. Currently there is no way to clear the count
of internal errors because this can be done by simply creating a new
InternalErrorReporter
.
- Specified by:
getNumInternalErrors
in interface InternalErrorReporter