Skip to main content

convert_sdk_error_reading_body

Function convert_sdk_error_reading_body 

Source
pub async fn convert_sdk_error_reading_body(
    err: Error<()>,
) -> AlienError<GenericError>
Expand description

Convert a progenitor SDK error to AlienError, reading the response body of error statuses so structured Alien errors returned by the manager (code, message, hint, retryable) survive the round-trip instead of collapsing into a generic “Unexpected response” error.

Async because reading the response body requires awaiting; falls back to convert_sdk_error semantics when the body is not an Alien error payload.