ADTF  3.18.2
adtf::ucom::kiwi Namespace Reference

Namespace for all functionality provided since v3.10. More...

Functions

std::string nested_exceptions_to_string (const std::exception &error)
 Formats nested std::exceptions into a string, line by line. More...
 
std::string current_exception_to_string ()
 Trys to format the current exception into a string. More...
 
tResult current_exception_to_result ()
 Converts the current exception object into a tResult. More...
 

Detailed Description

Namespace for all functionality provided since v3.10.

Function Documentation

◆ current_exception_to_result()

tResult adtf::ucom::kiwi::current_exception_to_result ( )
inline

Converts the current exception object into a tResult.

Works for both tResult and std::exceptions.

Returns
The result containing the exception information.

Definition at line 157 of file ucom3/include/adtfucom3/exception_handling.h.

◆ current_exception_to_string()

std::string adtf::ucom::kiwi::current_exception_to_string ( )
inline

Trys to format the current exception into a string.

This works for std::exception and tResult exception objects.

Returns
The formatted string.

Definition at line 126 of file ucom3/include/adtfucom3/exception_handling.h.

References string_base< storageT >::GetPtr(), nested_exceptions_to_string(), and A_UTILS_NS::to_string().

◆ nested_exceptions_to_string()

std::string nested_exceptions_to_string ( const std::exception &  error)
inline

Formats nested std::exceptions into a string, line by line.

Parameters
[in]errorthe exception
Returns
The formatted string.

Definition at line 114 of file ucom3/include/adtfucom3/exception_handling.h.

Referenced by current_exception_to_string().