Skip to content

Commit

Permalink
Merge pull request #648 from jonathanantoine/feature/more-details-in-…
Browse files Browse the repository at this point in the history
…exceptions

Add error code in exception message of InAppBillingPurchaseException.
  • Loading branch information
jamesmontemagno authored Nov 27, 2024
2 parents 8782d7f + 0371b1e commit 5af0cf3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ public class InAppBillingPurchaseException : Exception
/// </summary>
/// <param name="error"></param>
/// <param name="ex"></param>
public InAppBillingPurchaseException(PurchaseError error, Exception ex) : base("Unable to process purchase.", ex) => PurchaseError = error;
public InAppBillingPurchaseException(PurchaseError error, Exception ex) : base($"Unable to process purchase : {error:G}.", ex) => PurchaseError = error;
/// <summary>
///
/// </summary>
/// <param name="error"></param>
public InAppBillingPurchaseException(PurchaseError error) : base("Unable to process purchase.") => PurchaseError = error;
public InAppBillingPurchaseException(PurchaseError error) : base($"Unable to process purchase : {error:G}.") => PurchaseError = error;

/// <summary>
///
Expand Down

0 comments on commit 5af0cf3

Please sign in to comment.