Skip to main content

method_error_details

Function method_error_details 

Source
pub fn method_error_details<'a>(
    resp: &'a JmapResponse,
    call_id: &str,
) -> Option<&'a Map<String, Value>>
Expand description

Return the full JMAP "error" object for call_id, including any properties beyond type and description.

RFC 8620 §3.6.2: “Other properties may be present with further information”. ClientError::MethodError carries the properties jmap_types::JmapError models; call this with the same resp and call_id after extract_response returns MethodError to read the rest.

Uses the same lookup as extract_response: the first invocation matching call_id whose method name is "error". Returns None if there is no such invocation or its arguments are not a JSON object.