-
Notifications
You must be signed in to change notification settings - Fork 20
feat(eventdispatcher): HttpClientEventDispatcher45 now logs full exception #112
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
Conversation
|
||
namespace OptimizelySDK.Utils | ||
{ | ||
public static class ExtensionMethods |
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.
This seems like a very generic name. Can we call it ExceptionExtensionMethods
?
This is actually a pretty cool feature of the platform/language btw.
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.
@mikeng13 I believe the name should be ExceptionDetailExtension, since it's class, looks odd to call with Methods? make sense?
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.
further need to make it internal, since this can't be used outside DLL.
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.
Renamed the class as ExceptionExtensions to contain any exception related extensions in it, as the name ExceptionDetailExtension looks too specific. Thoughts?
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.
Also making the class internal restricts us from using it directly in unit tests. Please let me know if that approach needs to be changed.
|
||
namespace OptimizelySDK.Utils | ||
{ | ||
public static class ExceptionExtensions |
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.
internal?
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.
got it.
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, please update the header years
@@ -0,0 +1,34 @@ | |||
/* | |||
* Copyright 2018, Optimizely |
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.
2019 now :)
@@ -1,5 +1,5 @@ | |||
/* | |||
* Copyright 2017, Optimizely | |||
* Copyright 2017-2018, Optimizely |
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.
2019 :)
No description provided.