Skip to content

Implement NotFoundError #18

@codebestia

Description

@codebestia

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions