Skip to navigation

holoscan::config::format_error

Beta
View as Markdown
HOLOSCAN_CONFIG_EXPORT std::string holoscan::config::format_error(
const ConfigError &error
)

Render a configuration error as a single line for logs and diagnostics.

The result begins with the stable error token and includes available message, source, path, and retained cause context. Truncated fields are marked. Raw excerpt bytes are never included because they may contain sensitive configuration data. The wording is intended for people and is not a stable format; use ConfigError accessors for programmatic decisions.

Returns: Human-readable text without a trailing newline.

Parameters

error
const ConfigError &

Configuration error to render.