ADTF  3.18.2
ddl_error.h
Go to the documentation of this file.
1 
7 #ifndef _DDLERROR_H_INCLUDED_
8 #define _DDLERROR_H_INCLUDED_
9 
10 namespace adtf_ddl
11 {
17  class cDDLError
18  {
19  A_UTILS_NS::cString m_strLastErrorDescription;
20  tResult m_nLastErrorCode;
21  public:
26  public:
37  static const char* GetLastDDLErrorDescription();
43  static tResult SetLastDDLError(tResult nResult, const A_UTILS_NS::cString& strError);
44  };
45 
51 #define RETURN_DDLERROR_DESC(__errCode__, __desc__) { adtf_ddl::cDDLError::SetLastDDLError(__errCode__, __desc__); return DETAILED_RESULT(__errCode__, __desc__); }
56 #define RETURN_DDLERROR_IF_FAILED(__callterm__) { tResult ntmpRes = __callterm__; if (IS_FAILED(ntmpRes)) { RETURN_DDLERROR_DESC(ntmpRes, ""); } }
62 #define RETURN_DDLERROR_IF_FAILED_DESC(__callterm__, __desc__) { tResult ntmpRes = __callterm__; if (IS_FAILED(ntmpRes)) { RETURN_DDLERROR_DESC(ntmpRes, __desc__); } }
63 
64 
65 
66 } // namespace adtf_ddl
67 
68 #endif // _DDLERROR_H_INCLUDED_
Static DDL Error Handling class.
Definition: ddl_error.h:18
static tResult SetLastDDLError(tResult nResult, const A_UTILS_NS::cString &strError)
Sets the last DDL Error and error description.
static tResult GetLastDDLErrorCode()
Gets the last DDL Error Code occured.
static const char * GetLastDDLErrorDescription()
Gets the last DDL Error description occured.
Namespace for the mainpage_pkg_ddl.