---
url: 'https://adk.nht.io/api/@nhtio/adk/batteries/functions/wireErrorToError.md'
---

# Function: wireErrorToError()

```ts
function wireErrorToError(wireError: WireError): Error;
```

Defined in: [src/batteries/isolation/protocol.ts:269](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/protocol.ts#L269)

Reconstruct an `Error` from a [WireError](../interfaces/WireError.md) baseline (name/message/stack only — the `nhtio`-rich
path is decoded separately by the caller when an encoder is available; see `host.ts`).

## Parameters

| Parameter   | Type                                      |
| ----------- | ----------------------------------------- |
| `wireError` | [`WireError`](../interfaces/WireError.md) |

## Returns

`Error`
