Skip to content

Commit

Permalink
All messages passed into MandrillException also passes it to inner ex…
Browse files Browse the repository at this point in the history
…ception.
  • Loading branch information
shawnmclean committed Jul 21, 2017
1 parent f7cfd13 commit e55af89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mandrill/Utilities/MandrillException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public MandrillException()
/// The message.
/// </param>
public MandrillException(string message)
: base(message)
: base(message, new Exception(message))
{
}

Expand All @@ -50,7 +50,7 @@ public MandrillException(string message)
/// The message.
/// </param>
public MandrillException(ErrorResponse error, string message)
: base(message)
: base(message, new Exception(error.Message))
{
Error = error;
}
Expand Down

0 comments on commit e55af89

Please sign in to comment.