26 ADTF_IID(
IErrorHandling,
"error_handling.elasto.services.adtf.iid");
47 ADTF_IID(
IErrorHandler,
"error_handler.error_handling.elasto.services.adtf.iid");
72 const char* strErrorCategory,
93 const char* strErrorCategory,
134 const char* strErrorCategory,
145 const char* strErrorCategory,
173 const char* strErrorCategory,
186 const char* strErrorCategory,
200 if (
IS_FAILED(oResult) && m_pErrorHandler)
202 m_pErrorHandler->Handle(oResult);
212 using elasto::IErrorHandling;
213 using elasto::cErrorHandler;
216 using flash::cErrorChecker;
Copyright © Audi Electronics Venture GmbH.
#define IS_FAILED(s)
Check if result is failed.
A common result class usable as return value throughout.
Interface for handling an error from a specific error source and error category.
virtual void Handle(tResult oError)=0
Call this to notify the error handling of an error that occured.
Error handling interface.
tAction
Predefined actions that are supported by the default error handler implementation.
@ Stop
log error and stop the session.
@ Shutdown
log error and shutdown ADTF.
@ Abort
abort and create a stack trace.
virtual tResult CreateErrorHandler(const char *strErrorSource, const char *strErrorCategory, tAction eDefaultAction, ucom::ant::iobject_ptr< IErrorHandler > &pHandler)=0
Creates a new error handler for the given source and category.
Base class for implementing error handlers.
const char * GetErrorCategory() const
IErrorHandling::tAction GetAction() const
cErrorHandler(const char *strErrorSource, const char *strErrorCategory, IErrorHandling::tAction eAction)
Constructs a new error handler.
const char * GetErrorSource() const
void Handle(tResult oError) override
Call this to notify the error handling of an error that occured.
void SetAction(IErrorHandling::tAction eAction)
Sets the current action in case an error occurs.
Error checker implementation for easy use of the error handler elasto::IErrorHandling::IErrorHandler.
void Check(tResult oResult)
Checks the result and handle sit at error handler.
cErrorChecker(const char *strErrorSource, const char *strErrorCategory, elasto::IErrorHandling::tAction eDefaultAction)
CTOR which creates a error handler for the given values.
void Create(const char *strErrorSource, const char *strErrorCategory, elasto::IErrorHandling::tAction eDefaultAction)
Creates a error handler for the given values.
cErrorChecker()
Default CTOR.
Base class for every interface type within the uCOM.
Base object pointer to realize binary compatible reference counting in interface methods.
Object pointer implementation used for reference counting on objects of type IObject.
Use this template if you want to implement an ucom::ant::IObject based Interface and/or subclass an e...
#define A_UTILS_D(__pclassname_)
Helper macro for d-pattern definitions.
ucom::ant::object_ptr< IErrorHandling::IErrorHandler > create_error_handler(const char *strErrorSource, const char *strErrorCategory, IErrorHandling::tAction eDefaultAction)
Creates a new error handler.
void handle_error(const char *strErrorSource, const char *strErrorCategory, IErrorHandling::tAction eDefaultAction, tResult oError)
Convenience method to report an error for short lived objects.
Namespace for entire ADTF SDK.