Skip to main content

handle_fail

Function handle_fail 

Source
pub fn handle_fail(
    service: &str,
    status: u16,
    data: &Bytes,
) -> Result<(), Error>
Expand description

从响应体中提取 message 字段,状态码 ≥400 时构造业务错误。