errors#
Full path: iqm.station_control.interface.errors
Data models and mapping utilities for IQM REST API error handling.
This module provides the IQMServerError DTO, which defines the standard
JSON structure for error responses across the IQM ecosystem. It also contains
the logic to bridge the gap between HTTP status codes and the IQMError
exception hierarchy.
The mapping logic supports:
- Serialization & Encoding: Transforming server-side exceptions into
IQMServerErrorpayloads while determining the appropriate HTTP status code and preserving error metadata (codes, messages, and sources).
- Reconstruction & Decoding: Converting received
IQMServerError data back into the
IQMErrorhierarchy on the client side, ensuring failure data remains actionable in application logic.
- Reconstruction & Decoding: Converting received
Functions
Map a IQMError to an HTTPStatus code. |
|
|
Map an HTTPStatus code to a IQMError. |
Classes
Data transfer model for communicating error details over the REST API. |
Inheritance
