edu.cmu.sei.aadl.modelsupport.errorreporting
Interface InternalErrorReporter

All Known Subinterfaces:
ErrorReporterManager
All Known Implementing Classes:
AbstractErrorReporterManager, AbstractInternalErrorReporter, AnalysisErrorReporterManager, LogInternalErrorReporter, NullInternalErrorReporter, ParseErrorReporterManager, WriterInternalErrorReporter

public interface InternalErrorReporter

Interface for reporting internal errors. An internal error that occures during the operation of an analysis or other operation, the prevents the operation from completing normally. It is distinct from an error in the AADL textfile or AADL object model that prevent the correct execution of the analysis, etc. Of course, such an error might cause an internal error, e.g., a NullPointerException or IndexOutOfBoundsException.

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.
 

Method Detail

internalError

void internalError(java.lang.String message)
Report an error in the operation of the client task itself.

Parameters:
message - The error message.

internalError

void internalError(java.lang.Exception e)
Report an error in the operation of the client task itself.

Parameters:
e - The exception that caused the error.

getNumInternalErrors

int getNumInternalErrors()
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.