> This page is for version 5.0 (Latest) (default).
> For other versions, use one of these documentation indexes:
> - 5.0 (Latest) (default): https://docs.nvidia.com/holoscan/sdk-user-guide/5-0-latest/llms.txt
> - ltsb-2.0: https://docs.nvidia.com/holoscan/sdk-user-guide/ltsb-2-0/llms.txt
> - 4.6: https://docs.nvidia.com/holoscan/sdk-user-guide/4-6/llms.txt
> - 4.5: https://docs.nvidia.com/holoscan/sdk-user-guide/4-5/llms.txt
> - 4.4: https://docs.nvidia.com/holoscan/sdk-user-guide/4-4/llms.txt
> - 4.3: https://docs.nvidia.com/holoscan/sdk-user-guide/4-3/llms.txt
> - Archives: https://docs.nvidia.com/holoscan/sdk-user-guide/archives/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/holoscan/sdk-user-guide/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/holoscan/sdk-user-guide/_mcp/server.

# holoscan::params::ParamRebindError

> Own one typed snapshot-to-Graph conversion failure.

Own one typed snapshot-to-Graph conversion failure.

The value owns bounded path and schema context plus structured tooling detail. Context that exceeds a declared capacity is truncated and reported by [context_truncated()](#contexttruncated). The object is safe to read concurrently while no thread mutates or destroys it.

```cpp showLineNumbers={false}
#include <holoscan/params/rebind.hpp>
```

---

## Constructors

### ParamRebindError \[#paramrebinderror]

```cpp showLineNumbers={false}
holoscan::params::ParamRebindError::ParamRebindError(
    ParamRebindErrorCode code,
    ParamRebindStage stage,
    ParamToolError detail,
    std::string_view source_path = {},
    std::string_view target_path = {},
    std::string_view source_schema_id = {},
    std::string_view target_schema_id = {},
    ParamFieldId source_field = {},
    ParamFieldId target_field = {},
    std::optional<ParamSchemaHash> migration_evidence = std::nullopt
) noexcept
```

Construct one bounded rebinding failure.

> **Note**
>
> Construction is non-throwing; oversized textual context is truncated.

**Parameters**

**`code`** `ParamRebindErrorCode`

Stable failure category.

---

**`stage`** `ParamRebindStage`

[Exact](../../../structs/exact) cold-path stage that rejected the operation.

---

**`detail`** `ParamToolError`

Owning tooling failure detail and optional nested cause.

---

**`source_path`** `std::string_view` — default: \{}

Source [Operator](../../../classes/operator) or field path, when known.

---

**`target_path`** `std::string_view` — default: \{}

Target [Operator](../../../classes/operator) or field path, when known.

---

**`source_schema_id`** `std::string_view` — default: \{}

Source schema identity, when known.

---

**`target_schema_id`** `std::string_view` — default: \{}

Target schema identity, when known.

---

**`source_field`** `ParamFieldId` — default: \{}

Source field identity, or zero when unavailable.

---

**`target_field`** `ParamFieldId` — default: \{}

Target field identity, or zero when unavailable.

---

**`migration_evidence`** `std::optional<ParamSchemaHash>` — default: std::nullopt

Qualified migration evidence ID, when applicable.

---

---

## Methods

### code \[#code]

```cpp showLineNumbers={false}
ParamRebindErrorCode holoscan::params::ParamRebindError::code() const noexcept
```

Return the stable failure category.

### stage \[#stage]

```cpp showLineNumbers={false}
ParamRebindStage holoscan::params::ParamRebindError::stage() const noexcept
```

Return the exact stage that rejected the operation.

### source_path \[#sourcepath]

```cpp showLineNumbers={false}
std::string_view holoscan::params::ParamRebindError::source_path() const noexcept
```

Return the retained source path.

> **Note**
>
> The view remains valid until this error is assigned or destroyed.

### target_path \[#targetpath]

```cpp showLineNumbers={false}
std::string_view holoscan::params::ParamRebindError::target_path() const noexcept
```

Return the retained target path.

> **Note**
>
> The view remains valid until this error is assigned or destroyed.

### source_schema_id \[#sourceschemaid]

```cpp showLineNumbers={false}
std::string_view holoscan::params::ParamRebindError::source_schema_id() const noexcept
```

Return the retained source schema ID.

> **Note**
>
> The view remains valid until this error is assigned or destroyed.

### target_schema_id \[#targetschemaid]

```cpp showLineNumbers={false}
std::string_view holoscan::params::ParamRebindError::target_schema_id() const noexcept
```

Return the retained target schema ID.

> **Note**
>
> The view remains valid until this error is assigned or destroyed.

### source_field \[#sourcefield]

```cpp showLineNumbers={false}
ParamFieldId holoscan::params::ParamRebindError::source_field() const noexcept
```

Return the source field ID, or zero when unavailable.

### target_field \[#targetfield]

```cpp showLineNumbers={false}
ParamFieldId holoscan::params::ParamRebindError::target_field() const noexcept
```

Return the target field ID, or zero when unavailable.

### migration_evidence \[#migrationevidence]

```cpp showLineNumbers={false}
const std::optional<ParamSchemaHash> & holoscan::params::ParamRebindError::migration_evidence() const noexcept
```

Return qualified migration evidence associated with the failure.

**Returns:** Evidence hash, or empty when migration was not involved.

### context_truncated \[#contexttruncated]

```cpp showLineNumbers={false}
bool holoscan::params::ParamRebindError::context_truncated() const noexcept
```

Return whether any textual diagnostic context was truncated.

### detail \[#detail]

```cpp showLineNumbers={false}
const ParamToolError & holoscan::params::ParamRebindError::detail() const noexcept
```

Return structured tooling detail retained by this error.

> **Note**
>
> The reference remains valid until this error is assigned or destroyed.

---

## Member variables

| Name                                 | Type                                    | Description                      |
| ------------------------------------ | --------------------------------------- | -------------------------------- |
| `kPathCapacity` static constexpr     | `std::size_t`                           | Maximum bytes per retained path. |
| `kSchemaIdCapacity` static constexpr | `std::size_t`                           | Maximum bytes per schema ID.     |
| `code_`                              | `ParamRebindErrorCode`                  |                                  |
| `stage_`                             | `ParamRebindStage`                      |                                  |
| `source_path_`                       | `std::array< char, kPathCapacity >`     |                                  |
| `target_path_`                       | `std::array< char, kPathCapacity >`     |                                  |
| `source_schema_id_`                  | `std::array< char, kSchemaIdCapacity >` |                                  |
| `target_schema_id_`                  | `std::array< char, kSchemaIdCapacity >` |                                  |
| `source_path_size_`                  | `std::uint16_t`                         |                                  |
| `target_path_size_`                  | `std::uint16_t`                         |                                  |
| `source_schema_id_size_`             | `std::uint16_t`                         |                                  |
| `target_schema_id_size_`             | `std::uint16_t`                         |                                  |
| `source_field_`                      | `ParamFieldId`                          |                                  |
| `target_field_`                      | `ParamFieldId`                          |                                  |
| `migration_evidence_`                | `std::optional< ParamSchemaHash >`      |                                  |
| `context_truncated_`                 | `bool`                                  |                                  |
| `detail_`                            | `ParamToolError`                        |                                  |