Copyright © Audi Electronics Venture GmbH. More...
Go to the source code of this file.
Namespaces | |
namespace | adtf |
Namespace for entire ADTF SDK. | |
namespace | adtf::ucom |
Namespace for the ADTF uCOM3 SDK. | |
namespace | adtf::ucom::kiwi |
Namespace for all functionality provided since v3.10. | |
Macros | |
#define | ADTF_UCOM_ANNOTATE_RESULT(_result) |
for internal use | |
#define | ADTF_UCOM_COMPOSED_RESULT(_result, ...) |
for internal use | |
#define | THROW_ERROR_DESC(_code, ...) |
throws a tResult exception | |
#define | THROW_IF_FAILED(s) |
throws if the expression returns a failed tResult | |
#define | THROW_IF_FAILED_DESC(s, ...) |
throws if the expression returns a failed tResult and ammends the error message. | |
#define | RETURN_CURRENT_EXCEPTION() |
returns the current exception as a tResult, use it in a catch block. | |
#define | RETURN_CURRENT_EXCEPTION_DESC(...) |
returns the current exception as a tResult and ammends the error message. | |
#define | RETURN_IF_THROWS(s) |
if the expression throws an exception, returns a tResult containing the exception information. | |
#define | RETURN_IF_THROWS_DESC(s, ...) |
if the expression throws an exception, returns a tResult containing the exception information and ammends the error message. | |
#define | RETURN_IF_FAILED(s) |
returns if the expression returns a failed tResult or throws an exception. | |
#define | RETURN_IF_FAILED_DESC(s, ...) |
returns if the expression returns a failed tResult and ammends the error message. | |
Functions | |
std::string | nested_exceptions_to_string (const std::exception &error) |
Formats nested std::exceptions into a string, line by line. | |
void | format_nested_exception (const std::exception &error, std::ostream &stream, bool add_line_break=false) |
tResult | annotate_result (const tResult &oOriginal, const char *strFile, int nLine, const char *strFunction, const tChar *strDescription="") |
tResult | current_exception_to_result (const char *file, size_t line, const char *function) |
std::string | current_exception_to_string () |
Trys to format the current exception into a string. | |
tResult | current_exception_to_result () |
Converts the current exception object into a tResult. | |
std::string | nested_exceptions_to_string (const std::exception &error) |
Formats nested std::exceptions into a string, line by line. | |
std::string | current_exception_to_string () |
Trys to format the current exception into a string. | |
tResult | current_exception_to_result () |
Converts the current exception object into a tResult. | |
Copyright © Audi Electronics Venture GmbH.
All rights reserved
Definition in file ucom3/include/adtfucom3/exception_handling.h.
#define ADTF_UCOM_ANNOTATE_RESULT | ( | _result | ) |
for internal use
Definition at line 169 of file ucom3/include/adtfucom3/exception_handling.h.
#define ADTF_UCOM_COMPOSED_RESULT | ( | _result, | |
... ) |
for internal use
Definition at line 172 of file ucom3/include/adtfucom3/exception_handling.h.
#define RETURN_CURRENT_EXCEPTION | ( | ) |
returns the current exception as a tResult, use it in a catch block.
Definition at line 182 of file ucom3/include/adtfucom3/exception_handling.h.
#define RETURN_CURRENT_EXCEPTION_DESC | ( | ... | ) |
returns the current exception as a tResult and ammends the error message.
Definition at line 184 of file ucom3/include/adtfucom3/exception_handling.h.
#define RETURN_IF_FAILED | ( | s | ) |
returns if the expression returns a failed tResult or throws an exception.
Definition at line 196 of file ucom3/include/adtfucom3/exception_handling.h.
#define RETURN_IF_FAILED_DESC | ( | s, | |
... ) |
returns if the expression returns a failed tResult and ammends the error message.
Definition at line 202 of file ucom3/include/adtfucom3/exception_handling.h.
#define RETURN_IF_THROWS | ( | s | ) |
if the expression throws an exception, returns a tResult containing the exception information.
Definition at line 187 of file ucom3/include/adtfucom3/exception_handling.h.
Referenced by adtf::mediadescription::ant::make_sample_reader(), adtf::mediadescription::flash::make_sample_reader(), adtf::mediadescription::ant::make_sample_writer(), adtf::mediadescription::flash::make_sample_writer(), and object_ptr_delegate_base< IObject, StorageType >::Reset().
#define RETURN_IF_THROWS_DESC | ( | s, | |
... ) |
if the expression throws an exception, returns a tResult containing the exception information and ammends the error message.
Definition at line 189 of file ucom3/include/adtfucom3/exception_handling.h.
#define THROW_ERROR_DESC | ( | _code, | |
... ) |
throws a tResult exception
Definition at line 175 of file ucom3/include/adtfucom3/exception_handling.h.
Referenced by output_sample_data< T >::output_sample_data(), cGraphObject::CreateInterfaceServer(), adtf::mediadescription::quiet::for_each_element_infix(), interface_client< Interface >::Get(), output_sample_data< T >::GetDataPtr(), stream_meta_type_string::GetEncoding(), adtf::streaming::riddler::has_trigger_parent(), output_sample_data< T >::Release(), stream_meta_type_string::SetEncoding(), and stream_meta_type_string::SetEncodingType().
#define THROW_IF_FAILED | ( | s | ) |
throws if the expression returns a failed tResult
Definition at line 177 of file ucom3/include/adtfucom3/exception_handling.h.
Referenced by md_sample_data_factory< T >::md_sample_data_factory(), md_sample_data_factory< T >::md_sample_data_factory(), output_sample_data< T >::output_sample_data(), output_sample_data< T >::output_sample_data(), output_sample_data< T >::output_sample_data(), stream_type_plain< T >::stream_type_plain(), adtf::streaming::lucky::create_adtf_audio_stream_type(), adtf::streaming::lucky::create_adtf_image_stream_type(), cGraphObject::CreateInterfaceClient(), cGraphObject::CreateInterfaceServer(), cGraphObject::CreateInterfaceServer(), stream_meta_type_string::GetEncoding(), decoding_sample_reader< ReaderImplementation >::GetLastDecoder(), decoding_sample_reader< ReaderImplementation >::GetLastDecoder(), decoding_sample_reader< ReaderImplementation >::GetNextDecoder(), decoding_sample_reader< ReaderImplementation >::GetNextDecoder(), encoding_sample_writer< WriterImplementation >::MakeSample(), property< T, Enable >::Notify(), adtf::streaming::flash::operator<<(), adtf::streaming::flash::operator<<(), adtf::streaming::flash::operator<<(), adtf::streaming::flash::operator<<(), stream_meta_type_string::SetEncoding(), cTestListener::SignalAdded(), and cTestWriter::WriteSubStream().
#define THROW_IF_FAILED_DESC | ( | s, | |
... ) |
throws if the expression returns a failed tResult and ammends the error message.
Definition at line 179 of file ucom3/include/adtfucom3/exception_handling.h.
Referenced by interface_client< Interface >::Get().
|
inline |
Definition at line 47 of file ucom3/include/adtfucom3/exception_handling.h.
|
inline |
Definition at line 68 of file ucom3/include/adtfucom3/exception_handling.h.
|
inline |
Definition at line 26 of file ucom3/include/adtfucom3/exception_handling.h.