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

[icoscp-core] Make exceptions easier to handle #333

Open
squaregoldfish opened this issue Aug 23, 2024 · 0 comments
Open

[icoscp-core] Make exceptions easier to handle #333

squaregoldfish opened this issue Aug 23, 2024 · 0 comments

Comments

@squaregoldfish
Copy link

All errors thrown from the library appear to be basic Exceptions, so if we want to know what happened programmatically we have to parse the text of the exception message, e.g.:

Exception: SPARQL SELECT problem, HTTP response code: 503, response: You have exceeded your per-minute query quota. Please wait 1 minute to run more queries.

It would be much easier to have a QuotaExceededException or something similar in this instance.

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