71 const char* strErrorCategory,
92 const char* strErrorCategory,
133 const char* strErrorCategory,
144 const char* strErrorCategory,
172 const char* strErrorCategory,
185 const char* strErrorCategory,
199 if (
IS_FAILED(oResult) && m_pErrorHandler)
201 m_pErrorHandler->Handle(oResult);
211using elasto::IErrorHandling;
212using elasto::cErrorHandler;
215using flash::cErrorChecker;
#define ADTF_IID(_interface, _striid)
Definition adtf_iid.h:19
#define IS_FAILED(s)
Check if result is failed.
Definition result.h:20
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
cErrorChecker()
Default CTOR.
Definition error_handling_intf.h:162
cErrorHandler(const char *strErrorSource, const char *strErrorCategory, IErrorHandling::tAction eAction)
Definition error_handling_intf.h:44
virtual void Handle(tResult oError)=0
Definition error_handling_intf.h:23
virtual tResult CreateErrorHandler(const char *strErrorSource, const char *strErrorCategory, tAction eDefaultAction, ucom::ant::iobject_ptr< IErrorHandler > &pHandler)=0
tAction
Definition error_handling_intf.h:32
@ Stop
log error and stop the session.
Definition error_handling_intf.h:35
@ Shutdown
log error and shutdown ADTF.
Definition error_handling_intf.h:36
@ Abort
abort and create a stack trace.
Definition error_handling_intf.h:37
@ Log
log as warning.
Definition error_handling_intf.h:34
@ Ignore
do nothing.
Definition error_handling_intf.h:33
const char * GetErrorCategory() const
IErrorHandling::tAction GetAction() const
void Handle(tResult oError) override
void SetAction(IErrorHandling::tAction eAction)
const char * GetErrorSource() const
cErrorHandler(const char *strErrorSource, const char *strErrorCategory, IErrorHandling::tAction eAction)
void Check(tResult oResult)
Checks the result and handle sit at error handler.
Definition error_handling_intf.h:197
cErrorChecker(const char *strErrorSource, const char *strErrorCategory, elasto::IErrorHandling::tAction eDefaultAction)
CTOR which creates a error handler for the given values.
Definition error_handling_intf.h:171
void Create(const char *strErrorSource, const char *strErrorCategory, elasto::IErrorHandling::tAction eDefaultAction)
Creates a error handler for the given values.
Definition error_handling_intf.h:184
cErrorChecker()
Default CTOR.
Definition error_handling_intf.h:162
Definition object_intf.h:33
Base object pointer to realize binary compatible reference counting in interface methods.
Definition object_ptr_intf.h:112
Definition object_ptr.h:384
Namespace for all functionality of the ADTF Base SDK provided since v3.4.
Definition error_handling_intf.h:15
void handle_error(const char *strErrorSource, const char *strErrorCategory, IErrorHandling::tAction eDefaultAction, tResult oError)
ucom::ant::object_ptr< IErrorHandling::IErrorHandler > create_error_handler(const char *strErrorSource, const char *strErrorCategory, IErrorHandling::tAction eDefaultAction)
Namespace for all functionality of the ADTF Base SDK provided since v3.5.
Definition chrono.h:19
Namespace for the ADTF Base SDK.
Definition adtf_base_type_traits.h:13
ucom::ant::object_ptr< IErrorHandling::IErrorHandler > create_error_handler(const char *strErrorSource, const char *strErrorCategory, IErrorHandling::tAction eDefaultAction)
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14