|
ADTF
|
#include <error_handling_intf.h>
Inherits adtf::ucom::catwo::object< IErrorHandling::IErrorHandler >.
Public Member Functions | |
| cErrorHandler (const char *strErrorSource, const char *strErrorCategory, IErrorHandling::tAction eAction) | |
| void | Handle (tResult oError) override |
| IErrorHandling::tAction | GetAction () const |
| void | SetAction (IErrorHandling::tAction eAction) |
| const char * | GetErrorSource () const |
| const char * | GetErrorCategory () const |
Public Member Functions inherited from adtf::ucom::catwo::object< IErrorHandling::IErrorHandler > | |
| tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
| Query interfaces on an object. | |
| tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
| Provides const correct interface querying. | |
| void | Destroy () const override |
| Switch from non-virtual destructor to virtual destructor. | |
| tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
| Query interfaces on an object. | |
| tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
| Provides const correct interface querying. | |
| void | Destroy () const override |
| Switch from non-virtual destructor to virtual destructor. | |
| tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
| Query interfaces on an object. | |
| tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
| Provides const correct interface querying. | |
| void | Destroy () const override |
| Switch from non-virtual destructor to virtual destructor. | |
Public Member Functions inherited from adtf::ucom::ant::IObject | |
| ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Additional Inherited Members | |
Protected Member Functions inherited from adtf::ucom::ant::IObject | |
| ~IObject ()=default | |
| Protected destructor --> Only the final implementation can be destroyed! | |
Base class for implementing error handlers.
| adtf::base::elasto::cErrorHandler::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 adtf::base::elasto::cErrorHandler::GetAction | ( | ) | const |
| const char * adtf::base::elasto::cErrorHandler::GetErrorCategory | ( | ) | const |
| const char * adtf::base::elasto::cErrorHandler::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 adtf::base::elasto::cErrorHandler::SetAction | ( | IErrorHandling::tAction | eAction | ) |
Sets the current action in case an error occurs.
| [in] | eAction | The new action. |