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

Add PySnmpError.cause attribute #168

Merged
merged 1 commit into from
Aug 5, 2018
Merged

Conversation

etingof
Copy link
Owner

@etingof etingof commented Jul 10, 2018

The .cause attribute would hold the same info as returned by the exc_info() at the moment of parent exception being handled. This should allow inner parts of pysnmp main loop functions to raise their own exceptions and user application to get hold of those above the main loop.

This change addresses issue #167 .

To convey parent exception information on re-raise
@etingof etingof merged commit 36f7584 into pysnmp-4.4.5 Aug 5, 2018
@etingof etingof deleted the add-pysnmperror-cause-attr branch August 6, 2018 21:41
LissaGreense referenced this pull request in LissaGreense/pysnmp Apr 15, 2022
To convey parent exception information on re-raise
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.

None yet

1 participant