RTC Toolkit 4.0.1
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
exceptions.cpp File Reference

Implementation of RTC Toolkit specific exception classes. More...

#include <boost/core/demangle.hpp>
#include <fmt/format.h>
#include <type_traits>
#include "rtctk/componentFramework/exceptions.hpp"

Namespaces

namespace  rtctk
 
namespace  rtctk::componentFramework
 
namespace  rtctk::componentFramework::detail
 

Functions

std::ostream & rtctk::componentFramework::detail::JoinLines (std::ostream &os, std::string_view lines, std::string_view initial_indent, std::string_view subsequent_indent)
 Join each line in lines with.
 
void rtctk::componentFramework::detail::PrintNestedExceptionsRecursive (std::ostream &os, std::exception const &exception, int level=1, std::string const &prefix="", int nident=0)
 
void rtctk::componentFramework::detail::PrintNestedExceptionsRecursive (std::ostream &os, std::nested_exception const &exception, int level=1, std::string const &prefix="", int nident=0)
 Special overload for unknown exception that is still a std::nested_exception that can be further unwound.
 
void rtctk::componentFramework::PrintComposedExceptions (std::ostream &os, std::vector< std::exception_ptr > const &exceptions)
 Print composed exception(s) in exception messages to os.
 
void rtctk::componentFramework::PrintNestedExceptions (std::ostream &os, std::exception const &exception)
 Print nested exception(s) in exception messages to os.
 
void rtctk::componentFramework::PrintNestedExceptions (std::ostream &os, std::exception_ptr ptr)
 Print nested exception(s) in exception messages to os.
 

Variables

constexpr std::string_view rtctk::componentFramework::detail::COMPOSED_EXCEPTIONS_TITLE = "Composed exceptions:"
 
constexpr std::string_view rtctk::componentFramework::detail::NESTED_EXCEPTIONS_TITLE = "Nested exceptions:"
 
constexpr std::string_view rtctk::componentFramework::detail::UNKNOWN_NESTED_EXCEPTION_MSG = "Unknown nested exception"
 
constexpr std::string_view rtctk::componentFramework::detail::UNKNOWN_NON_NESTED_EXCEPTION_MSG = "Unknown non-nested exception"
 

Detailed Description

Implementation of RTC Toolkit specific exception classes.