> 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::make_unexpected

> Construct a new unexpected object.

```cpp showLineNumbers={false}
template <class E>
static constexpr unexpected<E> holoscan::make_unexpected(
    E &&e
)
```

Construct a new unexpected object.

**Returns:** The unexpected object

**Template parameters**

The type of the error class

**Parameters**

The object of the error class