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

Added SDK version to all contexted exceptions by default #255

Merged
merged 1 commit into from
Jun 14, 2017
Merged

Conversation

dekobon
Copy link
Contributor

@dekobon dekobon commented Jun 13, 2017

When users submit bugs with stack traces against the SDK, there is no way to know what version of the SDK that they are using by a single glance. This change embeds the SDK version in every Manta exception class that implementsExceptionContext.

Copy link
Contributor

@tjcelaya tjcelaya left a comment

Choose a reason for hiding this comment

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

LGTM!

Checked all the root exception classes that we define and made sure they were all covered.

Unfortunate that it needs to be added to each individual constructor of MantaIOException but that doesn't seem to be avoidable. If we start adding more default context values like these I'd want to pull them out into something like addDefaultContextValues() so it can be updated similarly to the initializers in other classes but that's not relevant yet.

@dekobon dekobon merged commit 87fc0f0 into master Jun 14, 2017
@dekobon dekobon deleted the fix_254 branch June 14, 2017 00:56
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.

2 participants