Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIError should make message more readily available to end users #431

Open
1 task done
kwilsonmg opened this issue Mar 27, 2024 · 1 comment
Open
1 task done

APIError should make message more readily available to end users #431

kwilsonmg opened this issue Mar 27, 2024 · 1 comment

Comments

@kwilsonmg
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

Currently you can access the APIError's code but not the message that is also returned with it. This seems to have been an oversight.

Describe the solution you'd like.

A new property called "message" that returns the message, just like how the code is returned by the "code" property.

Describe an alternate solution.

N/A

Anything else? (Additional Context)

No response

@kwilsonmg
Copy link
Author

Once this is merged, it makes solving #136 slightly easier as well...or at least fewer lines of code.

kwilsonmg added a commit to kwilsonmg/alpaca-py that referenced this issue Mar 27, 2024
Swapped to match rest of file. This relates to alpacahq#431.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant