Skip to navigation

holoscan::config::ConfigException

Beta
View as Markdown

Carry one complete structured configuration failure through an exception boundary.

what() is the result of format_error(error()). Constructing the exception can allocate; callers that must preserve allocation-failure handling use the corresponding try_* API.

#include <holoscan/config/document.hpp>

Inherits from: std::runtime_error (public)


Constructors

ConfigException

explicit
holoscan::config::ConfigException::ConfigException(
)

Construct an exception while preserving the complete structured error.

Parameters

error
ConfigError

Owning configuration failure to retain.

Destructor

~ConfigException

holoscan::config::ConfigException::~ConfigException() override

Destroy the exception through its exported shared-library implementation.


Assignment operators

operator=

ConfigException & holoscan::config::ConfigException::operator=(
) = default

Replace an exception with a copy of another structured failure.


Methods

error

const ConfigError & holoscan::config::ConfigException::error() const noexcept

Return the retained structured configuration failure.


Member variables

NameTypeDescription
error_ConfigError