HAKOM.ErrorHandling.Core.Net Assembly
Provides the foundational error handling infrastructure for HAKOM software.
Remarks
Section titled “Remarks”This assembly defines two core concepts that underpin error handling across the entire HAKOM platform:
- Typed exceptions — All exceptions thrown by HAKOM libraries derive from HakomException,
which provides a unique error code (e.g.
HK09002), an HTTP status code mapping, and culture-aware messages. - Result pattern — The Result and Result<TValue> types allow operations to communicate success or failure without throwing exceptions, enabling a Try/Result pattern throughout the codebase.
Every module in the HAKOM platform depends on this assembly. Exception types defined in other modules inherit from HakomException and are automatically assigned unique error codes by an internal error code resolver.
| Namespaces | |
|---|---|
| HAKOM.ErrorHandling.Core.Net.Api | Contains the public API surface of the HAKOM error handling module. |
| HAKOM.ErrorHandling.Core.Net.Api.Exceptions | Contains exception types specific to the error handling module itself. |
| HAKOM.ErrorHandling.Core.Net.Api.Results | Contains the concrete result types that represent the outcome of an operation. |
Was this page helpful?Thanks for your feedback!