# EmbeddingException constructor

Initializes a new instance of the [`EmbeddingException`](../EmbeddingException.md) class with the specified *error* details.

```csharp
public EmbeddingException(ChatGptError? error, HttpStatusCode statusCode)
```

| parameter | description |
| --- | --- |
| error | The detailed error information |
| statusCode | The HTTP status code |

## See Also

* class [ChatGptError](../../ChatGptNet.Models/ChatGptError.md)
* class [EmbeddingException](../EmbeddingException.md)
* namespace [ChatGptNet.Exceptions](../../ChatGptNet.md)

<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll -->
