Skip to content

[Bug]: Extend APIException to give more details #71

@ankursethi27

Description

@ankursethi27

What's on your mind?

The SDK uses ApiException for sending API exceptions but clients can only read string from this object.
Clients should be able to easily get fields such as HTTP status code, headers, body, message, etc. that are generic to all requests. Status Code is specially useful for emitting metrics and quickly debugging.

API exception should have fields corresponding to them e.g. status_code, body, etc.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions