public abstract class AbstractInternalErrorReporter extends java.lang.Object implements InternalErrorReporter
edu.cmu.sei.aadl.model.pluginsupport.InternalErrorReporter
that
manages the error count. The methods internalError(Exception)
and internalError(String)
increment the error count and then
delegate to the abstract methods internalErrorImpl(Exception)
and internalErrorImpl(String)
}, respectively.Constructor and Description |
---|
AbstractInternalErrorReporter() |
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.
|
abstract void |
internalErrorImpl(java.lang.Exception e) |
abstract void |
internalErrorImpl(java.lang.String message) |
public final 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 final int getNumInternalErrors()
InternalErrorReporter
InternalErrorReporter
.getNumInternalErrors
in interface InternalErrorReporter
public abstract void internalErrorImpl(java.lang.String message)
public abstract void internalErrorImpl(java.lang.Exception e)