-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
281 bug unable to import ezexceptions with ezsnmp v200b0 #285
Merged
carlkidcrypto
merged 23 commits into
main
from
281-bug-unable-to-import-ezexceptions-with-ezsnmp-v200b
Jan 30, 2025
Merged
281 bug unable to import ezexceptions with ezsnmp v200b0 #285
carlkidcrypto
merged 23 commits into
main
from
281-bug-unable-to-import-ezexceptions-with-ezsnmp-v200b
Jan 30, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- created the exceptions.i interface file - updated other interface files to use the exceptions.i file - added the c+ code for the custom exception classes for EzSnmp. More can be added as needed.
- fixed and improvements to the new interface file. Not working yet, but getting closer.
- starting to replace run_time errors with errors defined in `exceptions.h`.
- updated the docs with the new exception types - updated rest of runtime_errors
- attempted to use new exceptions in tests, that didn't work. I'll need to follow what I did for session.py and sessionbase.py - added GenericException to the interface - few doc fixes in development doc.
- added an exceptionbase layer - the python3 wrapper adds the Exception python class and then sets up the rest of the custom errors.
- added Base to the name of c++ errors - still working on the python wrapper. getting closer.
- current solution is to create a wrapper around netsnmp to catch exceptions from lower level calls and map them to simple names that don't have base in the name.
- making the new netsnmpbase - making the new netsnmp wrapper python3 code around netsnmpbase
- ran black - ran clang - organize alphabetically
- test netsnmp tests, great start for POC.
- forgot to commit the new handle_error common function.
- the test_session tests now pass on their own.
- pass now 100 percent
- 100 percent pass now.
- updating the Docs to work again. Getting close.
- updated the index.rst with an example that works. - updated docs again.
|
carlkidcrypto
deleted the
281-bug-unable-to-import-ezexceptions-with-ezsnmp-v200b
branch
January 30, 2025 05:37
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds custom exception handling.
New files were created see
ExceptionsBase.cpp
andExceptions.py
This lays out the ground work and by no means is complete.