-
Notifications
You must be signed in to change notification settings - Fork 297
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
Added OnError event to MetaObjectLock #1585
Added OnError event to MetaObjectLock #1585
Conversation
Welcome @fh-tmccurdy! |
Looks ok to me. I'll wait for input from @tg123 You'll need to sign our CLA. |
/// <summary> | ||
/// OnError is called when there is a http operation error. | ||
/// </summary> | ||
public event Action<HttpOperationException> OnError; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about OnHttpError
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did consider it, so happy to use it if everyone agrees. I was just trying to match LeaderElectors event name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about Action<Exception> OnError
to align with all other OnError in this libarary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed it to OnHttpError
for now.
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1585 +/- ##
=========================================
Coverage ? 61.47%
=========================================
Files ? 103
Lines ? 3071
Branches ? 641
=========================================
Hits ? 1888
Misses ? 1183
Partials ? 0 ☔ View full report in Codecov by Sentry. |
/approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fh-tmccurdy, tg123 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Exposes HTTP operation exceptions for logging or tracing.
Fixes #1584