Description
Raised on HTTP 404 responses. Should include the resource type and ID that was not found, so the developer can distinguish a missing payment from a missing invoice without parsing the message string.
Proposed Steps
- Define
NotFoundError(ShadeError) in errors.py.
- Add
resource_type: Optional[str] and resource_id: Optional[str] attributes.
- Populate from the 404 response body.
Acceptance Criteria
- A 404 response raises
NotFoundError.
error.resource_type and error.resource_id reflect the queried resource.
- Subclasses
ShadeError.
Description
Raised on HTTP 404 responses. Should include the resource type and ID that was not found, so the developer can distinguish a missing payment from a missing invoice without parsing the message string.
Proposed Steps
NotFoundError(ShadeError)inerrors.py.resource_type: Optional[str]andresource_id: Optional[str]attributes.Acceptance Criteria
NotFoundError.error.resource_typeanderror.resource_idreflect the queried resource.ShadeError.