Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 5af0cf3

Browse files
Merge pull request #648 from jonathanantoine/feature/more-details-in-exceptions
Add error code in exception message of InAppBillingPurchaseException.
2 parents 8782d7f + 0371b1e commit 5af0cf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Plugin.InAppBilling/Shared/InAppBillingExceptions.shared.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ public class InAppBillingPurchaseException : Exception
9090
/// </summary>
9191
/// <param name="error"></param>
9292
/// <param name="ex"></param>
93-
public InAppBillingPurchaseException(PurchaseError error, Exception ex) : base("Unable to process purchase.", ex) => PurchaseError = error;
93+
public InAppBillingPurchaseException(PurchaseError error, Exception ex) : base($"Unable to process purchase : {error:G}.", ex) => PurchaseError = error;
9494
/// <summary>
9595
///
9696
/// </summary>
9797
/// <param name="error"></param>
98-
public InAppBillingPurchaseException(PurchaseError error) : base("Unable to process purchase.") => PurchaseError = error;
98+
public InAppBillingPurchaseException(PurchaseError error) : base($"Unable to process purchase : {error:G}.") => PurchaseError = error;
9999

100100
/// <summary>
101101
///

0 commit comments

Comments
 (0)