RTC Toolkit 4.0.1
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
exceptions.hpp File Reference

Provides macros and utilities for exception handling. More...

#include <string_view>
#include <type_traits>
#include <typeinfo>
#include <ciiBasicDataType.hpp>
#include <ciiException.hpp>

Go to the source code of this file.

Classes

struct  rtctk::componentFramework::detail::UnspecifiedNested< T >
 Unspecified exception used by WrapWithNested. More...
 
class  rtctk::componentFramework::NestedExceptionPrinter
 Adapter object intended to be used in contexts without direct access to the output-stream object. More...
 
class  rtctk::componentFramework::RtctkException
 The RtctkException class is the base class for all Rtctk exceptions. More...
 
class  rtctk::componentFramework::NotImplementedException
 The NotImplementedException is thrown whenever an attempt is made to use a feature or function that has not been implemented. More...
 
class  rtctk::componentFramework::UnsupportedTypeException
 The UnsupportedTypeException is thrown whenever an attempt is made to use an unsupported type in the RTC Toolkit API. More...
 
class  rtctk::componentFramework::UnsupportedUriException
 The UnsupportedUriException is thrown whenever an attempt is made to use an unsupported URI in the RTC Toolkit API. More...
 
class  rtctk::componentFramework::BufferTooSmall
 The BufferTooSmall is thrown when an API call fails because the provided buffer is not big enough to hold the data. More...
 
class  rtctk::componentFramework::InvalidArgumentException
 Thrown if an argument passed to a method was invalid. More...
 
class  rtctk::componentFramework::InitialisationException
 Thrown in cases where an initialisation routine has failed. More...
 
class  rtctk::componentFramework::InvalidStateChange
 This Exception is raised when the state change requested is invalid. More...
 
class  rtctk::componentFramework::InvalidSetting
 This Exception is raised when a invalid setting was used in the runtime repo. More...
 
class  rtctk::componentFramework::DdtSinkNotFound
 This Exception is raised when an invalid ddt sink is requested. More...
 
class  rtctk::componentFramework::DdtError
 This Exception is raised when the DDT Publisher returns an error that cannot be handled by the DDT Sink. More...
 
class  rtctk::componentFramework::IpcqError
 This Exception is raised when the ipc queue returns an error that cannot be handled by the Telemetry Source Thread. More...
 
class  rtctk::componentFramework::AdapterCreationException
 Thrown from service factory methods to indicate the adapter construction failed. More...
 

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.
 
template<class E >
auto rtctk::componentFramework::WrapWithNested (E &&exception) noexcept(std::is_nothrow_constructible_v< detail::UnspecifiedNested< typename std::decay_t< E > >, E && >)
 Constructs an unspecified exception that derives from both the provided object and std::nested_exception.
 
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.
 

Detailed Description

Provides macros and utilities for exception handling.