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

Expose FunctionFailedException constructors for easier unit testing #756

Merged
merged 1 commit into from
May 10, 2019

Conversation

ConnorMcMahon
Copy link
Contributor

Addresses issue #753

/// Initializes a new instance of a <see cref="FunctionFailedException"/>.
/// </summary>
/// <param name="message">A message describing where to look for more details.</param>
public FunctionFailedException(string message)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unsure if this method really should be public. It isn't currently used in our code (but the [Serializable] attribute might require the method exists). Once we expose it as public, we can't remove it without it being a breaking change.

Copy link
Member

Choose a reason for hiding this comment

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

It's pretty common to have exception types with public constructors like this. I think it's fine to make this public.

@ConnorMcMahon ConnorMcMahon requested a review from cgillum May 10, 2019 21:24
Copy link
Member

@cgillum cgillum left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@ConnorMcMahon ConnorMcMahon merged commit 2259225 into dev May 10, 2019
@ConnorMcMahon ConnorMcMahon deleted the issue753 branch August 14, 2019 22:29
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