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

unwrap: implement Exception type for better exception handling #3438

Merged
merged 1 commit into from
May 17, 2024

Conversation

roman-khimov
Copy link
Member

Fix #3130. "Exception" is used for name since it's shorter and that's the name used in JSON. "VMFault" was also considered as well as "FaultException" (which mirrors result.Invoke).

Copy link

codecov bot commented May 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.14%. Comparing base (13020cc) to head (f4731ea).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3438   +/-   ##
=======================================
  Coverage   86.14%   86.14%           
=======================================
  Files         331      331           
  Lines       38432    38434    +2     
=======================================
+ Hits        33106    33110    +4     
+ Misses       3800     3799    -1     
+ Partials     1526     1525    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Fix #3130. "Exception" is used for name since it's shorter and that's the name
used in JSON. "VMFault" was also considered as well as "FaultException"
(which mirrors result.Invoke).

Signed-off-by: Roman Khimov <roman@nspcc.ru>
pkg/rpcclient/unwrap/unwrap.go Show resolved Hide resolved
@AnnaShaleva AnnaShaleva merged commit 2d4993a into master May 17, 2024
21 checks passed
@AnnaShaleva AnnaShaleva deleted the unwrap-fault-exception branch May 17, 2024 07:24
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.

Provide way to detect fault exceptions returned by unwrap package functions
4 participants