# Reporting Analysis Errors

Each analysis function returns an integer error code. If the function executes properly, the function returns a zero; otherwise, the function returns an appropriate error value. You can use GetAnalysisErrorString to get the error message associated with each Analysis Library error code.

The return value corresponds to one of the enumeration values of the type that AnalysisLibErrType declares in the header file analysis.h. The analysis functions are declared in the header file with this return type so that the function panel controls for return values display the symbolic name instead of the integer value of the error code. Declaring a variable to be the type AnalysisLibErrType allows the Variables window to display the variable value as a symbolic name instead of as an integer.