ADTF  v2.14.3
exception_intf.h File Reference

Exception interface. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IException
 The IException interface for more information see. More...
 

Namespaces

 ucom
 The ucom defines the namespace for all functionality that is provided by the definitions for the Micro Component Object Model and the default implementations within the library adtf_ucomXXX.a/ adtf_ucomXXX.lib.
 

Macros

#define __throw_exception_obj(e, obj)
 The __throw_exception_obj macro will create a new exception in "e". More...
 
#define __throw_exception(obj)   __throw_exception_obj(__exception_ptr, obj)
 The __throw_exception macro will create a new exception and store it in __exception_ptr. More...
 
#define __catch_exception(e)   if ( ((ucom::IException*) (e)) != NULL)
 This macro is used to catch exceptions.
 
#define __exception_obj(obj)   ucom::IException** obj
 This macro is used as an abbreviation.
 
#define __exception   ucom::IException** __exception_ptr
 This macro is used as an abbreviation.
 

Detailed Description

Exception interface.

Copyright © Audi Electronics Venture GmbH. All rights reserved

Author
AGEISE9
Date
2014-12-01 15:47:45 +0100 (Mon, 01 Dec 2014)
Revision
52645
Remarks

Definition in file exception_intf.h.

Macro Definition Documentation

#define __throw_exception (   obj)    __throw_exception_obj(__exception_ptr, obj)

The __throw_exception macro will create a new exception and store it in __exception_ptr.

This Macro can only be used in a function which has the tResult as Standard Result Code.

Parameters
objThe obj parameter will usally contain a interface implemention of the ucom::IException interface.
Returns
The macro will return a tResult Code.

Definition at line 258 of file exception_intf.h.

#define __throw_exception_obj (   e,
  obj 
)
Value:
if ((e) != NULL) { \
if (*e != NULL) \
{ \
(*e)->Unref(); \
} \
*e = new obj; \
(*e)->Ref(); \
return (*e)->GetResult(); \
} else { return ERR_FAILED; }
-38
Definition: error.h:124

The __throw_exception_obj macro will create a new exception in "e".

This Macro can only be used in a function which has the tResult as Standard Result Code.

Parameters
eThe e parameter will usually contain the __exception_ptr exception reference pointer.
objThe obj parameter will usally contain a interface implemention of the ucom::IException interface.
Returns
The macro will return a tResult Code.

Definition at line 238 of file exception_intf.h.


Copyright © Audi Electronics Venture GmbH. All rights reserved. (Generated on Fri Mar 22 2019 by doxygen 1.8.10)