|
NSCL DDAS 12.2-009
Support for XIA DDAS at FRIB
|
CException wrapper for XIA return codes containing the return code and context message of the error. More...
#include <CXIAException.h>


Public Member Functions | |
| CXIAException (std::string msg, std::string fcn, int rv) | |
| Constructor from arguments. More... | |
| virtual | ~CXIAException () |
| Destructor. Nothing to do here. More... | |
| virtual int | ReasonCode () const |
| Get the reason code. More... | |
| virtual const char * | ReasonText () const |
| Get the return text. More... | |
CException wrapper for XIA return codes containing the return code and context message of the error.
XIA API major version 4 and later implement a return code and context message for non-zero return values from API functions. This class provides a wrapper for that business using the CException class:
ReasonText() method. The value of the return code can be accessed using the ReasonCode() method. | CXIAException::CXIAException | ( | std::string | msg, |
| std::string | fcn, | ||
| int | rv | ||
| ) |
Constructor from arguments.
| msg | User context message for the error. |
| fcn | XIA API function name. |
| rv | XIA API function return value. |
Get the XIA API error message from the passed return value and construct the full error message.
|
inlinevirtual |
Destructor. Nothing to do here.
|
virtual |
Get the reason code.
|
virtual |
Get the return text.