packages/exception/docs/api/serializer/functions/createFromSerializable.md
[**@httpx/exception**](../../README.md) • **Docs**
---
[@httpx/exception](../../README.md) / [serializer](../README.md) / createFromSerializable
# Function: createFromSerializable()
> **createFromSerializable**(`payload`, `params`?): [`HttpException`](../../base/classes/HttpException.md) \| [`NativeError`](../type-aliases/NativeError.md)
create an Error, NativeError or any HttpException from a
serializable representation
## Parameters
• **payload**: `Serializable`
• **params?**: `SerializerParams`
## Returns
[`HttpException`](../../base/classes/HttpException.md) \| [`NativeError`](../type-aliases/NativeError.md)
## Link