Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mnexa-AI/e2a
/ _exc
Function
_exc
sdks/python/tests/test_v1_errors.py:21–24 ·
view source on GitHub ↗
(status, body=None, headers=None)
Source
from the content-addressed store, hash-verified
19
20
21
def
_exc(status, body=None, headers=None):
22
e = ApiException(status=status, body=body)
23
e.headers = headers
24
return
e
25
26
27
def
test_status_to_class_mapping():
Callers
12
test_status_to_class_mapping
Function · 0.85
test_retryable_flags
Function · 0.85
test_idempotency_code_wins_over_status
Function · 0.85
test_envelope_fields_surfaced
Function · 0.85
test_non_json_body_falls_back_to_status_bucket
Function · 0.85
test_retry_after_numeric_and_http_date
Function · 0.85
test_missing_envelope_does_not_crash
Function · 0.85
test_list_valued_retry_after_does_not_crash
Function · 0.85
test_known_code_maps_by_code_on_unexpected_status
Function · 0.85
test_unknown_code_falls_back_to_status_bucket
Function · 0.85
test_retry_after_from_details_body_when_header_absent
Function · 0.85
test_retry_after_header_wins_over_details
Function · 0.85
Calls
1
ApiException
Class · 0.90
Tested by
no test coverage detected