-
Notifications
You must be signed in to change notification settings - Fork 1
Implement NetworkError #20
Copy link
Copy link
Open
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignCampaign: Official Campaignarea:errorspriority:p2type:feature
Metadata
Metadata
Assignees
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignCampaign: Official Campaignarea:errorspriority:p2type:feature
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
Raised when a request fails due to a client-side network issue — DNS failure, connection refused, timeout — rather than an API error response. Wraps the underlying
httpxexception for context.Proposed Steps
NetworkError(ShadeError)inerrors.py.original_error: Exceptionattribute.httpx.ConnectError,httpx.TimeoutException,httpx.ReadErrorin the HTTP client and re-raise asNetworkError.Acceptance Criteria
NetworkErrorwithoriginal_errorset to thehttpxexception.str(error)includes a human-readable description of the network failure.KeyboardInterruptorSystemExit.