HAKOM.Persistence.Http.Net.Api.References.Exceptions Namespace
Exception types related to resolving default storage information for references in the context of HTTP requests.
Remarks
Section titled “Remarks”These exceptions are thrown when attempting to deserialize an IReference implementation without explicit storage information and the HTTP context does not provide enough information to determine a default.
- NotInTheContextOfAnHttpRequestException — Deserialization was attempted outside an HTTP request, so no Microsoft.AspNetCore.Http.HttpContext is available (HK12047).
- NotInTheContextOfARepositoryException — The HTTP request does not carry repository context (either a
RepositoryNamestring or an IRepository instance in Microsoft.AspNetCore.Http.HttpContext.Items) (HK12048).
| Classes | |
|---|---|
| NotInTheContextOfAnHttpRequestException | This error occurs when no storage information is passed while deserializing a reference and the IDefaultStorageInformationProvider<TReference> registered for that type requires an HTTP context to determine the default storage information. |
| NotInTheContextOfARepositoryException | This error occurs when no storage information is passed while deserializing a reference and the IDefaultStorageInformationProvider<TReference> registered for that type requires information about the current repository in order to determine the default storage information. |
Was this page helpful?Thanks for your feedback!