holoscan::params::ParamToolError
holoscan::params::ParamToolError
Own one typed optional-tooling failure without widening Core ErrorCode.
The value owns a bounded machine token and optional structured causes. Copying the value preserves every cause. Construction performs no unbounded token allocation and the resulting object is safe to read concurrently while no thread mutates or destroys it.
Constructors
ParamToolError
Construct one bounded tooling failure.
Construction does not throw and does not log.
Parameters
Stable tooling category.
Stable diagnostic token beginning with an ASCII uppercase letter and containing only ASCII uppercase letters, digits, or underscores. An invalid or oversized token maps to the bounded PARAM_TOOL_TOKEN_INVALID sentinel.
Optional owning Core cause to preserve structurally.
Optional owning Config cause to preserve structurally.
Methods
code
Return the stable tooling category.
token
Return the stable diagnostic token.
The view remains valid until this error is assigned or destroyed.
core_cause
Return the preserved Core cause when one exists.
Returns: Reference valid until this error is assigned or destroyed.
config_cause
Return the preserved Config cause when one exists.
The returned reference remains valid until this error is assigned or destroyed.
Returns: Owning bounded Config diagnostic, or empty when the failure did not originate there.