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

chore(internal): move error classes from _base_exceptions to _exceptions (⚠️ breaking) #162

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

stainless-bot
Copy link
Collaborator

Migration Guide

If you were instantiating our error classes directly,
you may no longer pass a request kwarg (it is now pulled from the response).

  # before:
- BadRequestError("Test", response=response, request=request)
  # after:
+ BadRequestError("Test", response=response)

…ons (⚠️ breaking)

## Migration Guide

If you were instantiating our error classes directly,
you may no longer pass a `request` kwarg (it is now pulled from the `response`).

```diff
  # before:
- BadRequestError("Test", response=response, request=request)
  # after:
+ BadRequestError("Test", response=response)
```
@stainless-bot stainless-bot merged commit 329b307 into next Sep 22, 2023
@stainless-bot stainless-bot deleted the chore-internal-move-error-classe branch September 22, 2023 22:27
@stainless-bot stainless-bot mentioned this pull request Sep 22, 2023
rattrayalex pushed a commit that referenced this pull request Oct 11, 2023
…ons (⚠️ breaking) (#162)

## Migration Guide
If you were instantiating our error classes directly,
you may no longer pass a `request` kwarg (it is now pulled from the `response`).
```diff
  # before:
- BadRequestError("Test", response=response, request=request)
  # after:
+ BadRequestError("Test", response=response)
```
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

Successfully merging this pull request may close these issues.

1 participant