Skip to navigation

holoscan::RuntimeError

Beta
View as Markdown

Class for runtime errors related to Holoscan SDK.

This class is used to hold runtime error message in Holoscan SDK.

New error codes are added by appending to the ErrorCode enum; their names are derived automatically by error_code_name().

#include <holoscan/errors.hpp>

Inherits from: std::runtime_error (public)


Constructors

RuntimeError

explicit
HOLOSCAN_CORE_EXPORT holoscan::RuntimeError::RuntimeError(
holoscan::ErrorCode error_code
)

Methods

code

holoscan::ErrorCode holoscan::RuntimeError::code() const noexcept

Get the error code carried by this error.

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

construct_error_message

static std::string holoscan::RuntimeError::construct_error_message(
holoscan::ErrorCode error_code,
const char *what_arg
)

Member variables

NameTypeDescription
code_holoscan::ErrorCodeThe error code carried by this error (kFailure when constructed without an explicit code).