Skip to content

Conversation

mfahadahmed
Copy link
Contributor

No description provided.

@mfahadahmed mfahadahmed changed the title Fix HttpClientEventDispatcher45 exception logging issue. feat(eventdispatcher): HttpClientEventDispatcher45 doesn't log full exception Nov 8, 2018
@mfahadahmed mfahadahmed changed the title feat(eventdispatcher): HttpClientEventDispatcher45 doesn't log full exception feat(eventdispatcher): HttpClientEventDispatcher45 now logs full exception Nov 8, 2018

namespace OptimizelySDK.Utils
{
public static class ExtensionMethods
Copy link
Contributor

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.

Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor Author

@mfahadahmed mfahadahmed Nov 9, 2018

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?

Copy link
Contributor Author

@mfahadahmed mfahadahmed Nov 9, 2018

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

internal?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it.

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a 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
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2019 :)

@mikeproeng37 mikeproeng37 merged commit ee353e5 into master Feb 15, 2019
@mfahadahmed mfahadahmed deleted the fahad/inner-exception-fix branch May 9, 2019 11:44
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.

3 participants