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

Custom error handling #31

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Bakobiibizo
Copy link
Contributor

@Bakobiibizo Bakobiibizo commented Mar 25, 2024

Got into the weeds there a bit, but I refactored existing errors and errors that were described in the doc strings to have custom error classes with descriptions. It is a wide change across the code base, I believe it has been done correctly. It will need to be vetted and tested extensively before being deployed to main. Particularly the module/client.py as that has the most extensive revisions.
This is in preparation to update the cli to automatically display the help menu of the menu you're on when you make an error with a command for the cli inputs. Which i will get to at some point.
There is a logger included in the repo, its currently not being used anywhere since you have your own messaging solution, but i did want to ask how i should go about displaying the help menu. makes more sense to use existing messaging, i think i got ahead of my self. Let me know how you'd like me to proceed. I wont have a ton more time this week, but i should be able to tackle it again by end of the weekend.
Full disclosure, this was done by an AI agent. I have it tuned to do tasks like this very accurately but there is still a good 5% of wiggle room for error, so I would not be surprised if there were a few things that were slightly out of whack.

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.

3 participants