Skip to navigation

holoscan::params::ParamException

Beta
View as Markdown

Carry one complete structured Parameter tooling failure through an exception boundary.

what() is the result of format_error(error()). Constructing the exception can allocate; callers that need explicit failure handling use the corresponding result-returning API.

#include <holoscan/params/error.hpp>

Inherits from: holoscan::RuntimeError (public)


Constructors

ParamException

explicit
holoscan::params::ParamException::ParamException(
)

Construct an exception while preserving the complete structured error.

Parameters

error
ParamToolError

Owning Parameter tooling failure to retain.

Destructor

~ParamException

holoscan::params::ParamException::~ParamException() override

Destroy the exception through its exported shared-library implementation.


Assignment operators

operator=

ParamException & holoscan::params::ParamException::operator=(
) = default

Replace an exception with a copy of another structured failure.


Methods

error

const ParamToolError & holoscan::params::ParamException::error() const noexcept

Return the retained structured Parameter tooling failure.

code

holoscan::ErrorCode holoscan::params::ParamException::code() const noexcept

Get the error code carried by this error.

Returns: The ErrorCode (kFailure for errors constructed without an explicit code).


Member variables

NameTypeDescription
error_ParamToolError