Skip to content

Commit

Permalink
Expose FunctionFailedException constructors for easier unit testing (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor McMahon authored May 10, 2019
1 parent 8596868 commit 2259225
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/WebJobs.Extensions.DurableTask/FunctionFailedException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,21 @@ internal FunctionFailedException()
{
}

internal FunctionFailedException(string message)
/// <summary>
/// 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)
: base(message)
{
}

internal FunctionFailedException(string message, Exception innerException)
/// <summary>
/// Initializes a new instance of a <see cref="FunctionFailedException"/>.
/// </summary>
/// <param name="message">A message describing where to look for more details.</param>
/// <param name="innerException">The exception that caused the function to fail.</param>
public FunctionFailedException(string message, Exception innerException)
: base(message, innerException)
{
}
Expand Down

0 comments on commit 2259225

Please sign in to comment.