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.

If new error code is required to be added, it could be done by appending to the ErrorCode class and respective error string to the ErrorStrings array.

#include <holoscan/errors.hpp>

Inherits from: std::runtime_error (public)


Constructors

RuntimeError

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

Methods

construct_error_message

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

Static methods

error_string

static const char * holoscan::RuntimeError::error_string(
const holoscan::ErrorCode error_code
)

Get the error string from the error code.

Returns: The converted error string in const char*.

Parameters

error_code
const holoscan::ErrorCode

The error code to be converted.


Member variables

NameTypeDescription
ErrorStrings staticconst char *The error strings for each error code.