RTC Toolkit  2.0.0
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

 rtctk
 
 rtctk::componentFramework
 
 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. More...
 
void rtctk::componentFramework::detail::PrintNestedExceptionsRecursive (std::ostream &os, std::exception const &exception, int level=1)
 
void rtctk::componentFramework::detail::PrintNestedExceptionsRecursive (std::ostream &os, std::nested_exception const &exception, int level=1)
 Special overload for unknown exception that is still a std::nested_exception that can be further unwound. More...
 
void rtctk::componentFramework::PrintNestedExceptions (std::ostream &os, std::exception const &exception)
 Print nested exception(s) in exception messages to os. More...
 
void rtctk::componentFramework::PrintNestedExceptions (std::ostream &os, std::exception_ptr ptr)
 Print nested exception(s) in exception messages to os. More...
 

Variables

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.