ADTF
Loading...
Searching...
No Matches
adtf::base::elasto Namespace Reference

Namespace for all functionality of the ADTF Base SDK provided since v3.4. More...

Classes

class  cErrorHandler
 
class  IErrorHandling
 

Functions

ucom::ant::object_ptr< IErrorHandling::IErrorHandler > create_error_handler (const char *strErrorSource, const char *strErrorCategory, IErrorHandling::tAction eDefaultAction)
 
void handle_error (const char *strErrorSource, const char *strErrorCategory, IErrorHandling::tAction eDefaultAction, tResult oError)
 

Detailed Description

Namespace for all functionality of the ADTF Base SDK provided since v3.4.

Function Documentation

◆ create_error_handler()

ucom::ant::object_ptr< IErrorHandling::IErrorHandler > adtf::base::elasto::create_error_handler ( const char * strErrorSource,
const char * strErrorCategory,
IErrorHandling::tAction eDefaultAction )

Creates a new error handler. This works both if an error handling service is available or not.

Parameters
[in]strErrorSourceThe name of the error source.
[in]strErrorCategoryThe name of the error category.
[in]eDefaultActionThe default action that should be taken if an error occurs.
Returns
pHandler The new handler.

◆ handle_error()

void adtf::base::elasto::handle_error ( const char * strErrorSource,
const char * strErrorCategory,
IErrorHandling::tAction eDefaultAction,
tResult oError )

Convenience method to report an error for short lived objects.

Parameters
[in]strErrorSourceThe name of the error source.
[in]strErrorCategoryThe name of the error category.
[in]eDefaultActionThe default action that should be taken if an error occurs.
[in]oErrorThe error result.