ADTF  3.18.3
ddl_error.h File Reference

Copyright © Audi Electronics Venture GmbH. More...

Go to the source code of this file.

Classes

class  cDDLError
 Static DDL Error Handling class. More...
 

Namespaces

 adtf_ddl
 Namespace for the mainpage_pkg_ddl.
 

Macros

#define RETURN_DDLERROR_DESC(__errCode__, __desc__)   { adtf_ddl::cDDLError::SetLastDDLError(__errCode__, __desc__); return DETAILED_RESULT(__errCode__, __desc__); }
 Helper to set an error description to the DDL error handling and return a DDL Error. More...
 
#define RETURN_DDLERROR_IF_FAILED(__callterm__)   { tResult ntmpRes = __callterm__; if (IS_FAILED(ntmpRes)) { RETURN_DDLERROR_DESC(ntmpRes, ""); } }
 Helper to set an error description to the DDL error handling and return a DDL Error if failed. More...
 
#define RETURN_DDLERROR_IF_FAILED_DESC(__callterm__, __desc__)   { tResult ntmpRes = __callterm__; if (IS_FAILED(ntmpRes)) { RETURN_DDLERROR_DESC(ntmpRes, __desc__); } }
 Helper to set an error description to the DDL error handling and return a DDL Error if failed. More...
 

Detailed Description

Copyright © Audi Electronics Venture GmbH.

All rights reserved

Definition in file ddl_error.h.

Macro Definition Documentation

◆ RETURN_DDLERROR_DESC

#define RETURN_DDLERROR_DESC (   __errCode__,
  __desc__ 
)    { adtf_ddl::cDDLError::SetLastDDLError(__errCode__, __desc__); return DETAILED_RESULT(__errCode__, __desc__); }

Helper to set an error description to the DDL error handling and return a DDL Error.

Parameters
[in]__errCode__the error code to return
[in]__desc__the description to set

Definition at line 51 of file ddl_error.h.

◆ RETURN_DDLERROR_IF_FAILED

#define RETURN_DDLERROR_IF_FAILED (   __callterm__)    { tResult ntmpRes = __callterm__; if (IS_FAILED(ntmpRes)) { RETURN_DDLERROR_DESC(ntmpRes, ""); } }

Helper to set an error description to the DDL error handling and return a DDL Error if failed.

Parameters
[in]__callterm__statement to execute to.

Definition at line 56 of file ddl_error.h.

◆ RETURN_DDLERROR_IF_FAILED_DESC

#define RETURN_DDLERROR_IF_FAILED_DESC (   __callterm__,
  __desc__ 
)    { tResult ntmpRes = __callterm__; if (IS_FAILED(ntmpRes)) { RETURN_DDLERROR_DESC(ntmpRes, __desc__); } }

Helper to set an error description to the DDL error handling and return a DDL Error if failed.

Parameters
[in]__callterm__statement to execute to.
[in]__desc__additional error description to set.

Definition at line 62 of file ddl_error.h.