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

Rename ApiException and ModeledApiException and add error #565

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

mtdowling
Copy link
Member

@mtdowling mtdowling commented Jan 24, 2025

Rename ApiException and ModeledApiException and move

ApiException is renamed to CallException to better indicate that the error may not have actually hit a service or be related to the API (e.g., it could be a timeout, networking error, protocol error, etc.)

ModeledApiException is renamed to ModeledException since it no longer extends from ApiException and Api isn't helping make the name more clear.

Exceptions have been moved to a top-level error package, since not all errors are modeled or have a schema, and to better group them.

ApiException is renamed to CallException to better indicate that the
error may not have actually hit a service or be related to the API
(e.g., it could be a timeout, networking error, protocol error, etc.)

ModeledApiException is renamed to ModeledException since it no longer
extends from ApiException and Api isn't helping make the name more
clear.

Exceptions have been moved to a top-level error package, since not all
errors are modeled or have a schema, and to better group them.
@mtdowling mtdowling changed the title Rename ApiException and ModeledApiException Rename ApiException and ModeledApiException and add error Jan 24, 2025
@mtdowling mtdowling merged commit 33239ef into main Jan 28, 2025
3 checks passed
@mtdowling mtdowling deleted the rename-exceptions branch February 5, 2025 22:01
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.

2 participants