public abstract class AbstractErrorReporterManager extends java.lang.Object implements ErrorReporterManager
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).Modifier and Type | Method and Description |
---|---|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNumMessages
public void internalError(java.lang.String message)
InternalErrorReporter
internalError
in interface InternalErrorReporter
message
- The error message.public void internalError(java.lang.Exception e)
InternalErrorReporter
internalError
in interface InternalErrorReporter
e
- The exception that caused the error.public int getNumInternalErrors()
InternalErrorReporter
InternalErrorReporter
.getNumInternalErrors
in interface InternalErrorReporter