ADTF
|
Base class for implementing error handlers. More...
Public Member Functions | |
cErrorHandler (const char *strErrorSource, const char *strErrorCategory, IErrorHandling::tAction eAction) | |
Constructs a new error handler. More... | |
void | Handle (tResult oError) override |
Call this to notify the error handling of an error that occured. More... | |
IErrorHandling::tAction | GetAction () const |
void | SetAction (IErrorHandling::tAction eAction) |
Sets the current action in case an error occurs. More... | |
const char * | GetErrorSource () const |
const char * | GetErrorCategory () const |
Public Member Functions inherited from object< IErrorHandling::IErrorHandler > | |
tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
Query interfaces on an object. More... | |
tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
Provides const correct interface querying. More... | |
void | Destroy () const override |
Destruct and deallocate instantiations of type IObject . More... | |
Public Member Functions inherited from IObject | |
ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Marks the IObject to be castable with the ucom_cast() More... | |
Additional Inherited Members | |
Protected Member Functions inherited from IObject | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
Base class for implementing error handlers.
Definition at line 83 of file error_handling_intf.h.
cErrorHandler | ( | const char * | strErrorSource, |
const char * | strErrorCategory, | ||
IErrorHandling::tAction | eAction | ||
) |
Constructs a new error handler.
[in] | strErrorSource | The name of the error source. |
[in] | strErrorCategory | The name of the error category. |
[in] | eAction | The action that should be taken if an error occurs. |
IErrorHandling::tAction GetAction | ( | ) | const |
const char* GetErrorCategory | ( | ) | const |
const char* GetErrorSource | ( | ) | const |
|
override |
Call this to notify the error handling of an error that occured.
Note that you still need to deal with this error in your component as good as possible!
[in] | oError | The error result. |
void SetAction | ( | IErrorHandling::tAction | eAction | ) |
Sets the current action in case an error occurs.
[in] | eAction | The new action. |