Table of Contents

Class BillingException

Namespace
VpnHood.AppLib.Abstractions.Billing
Assembly
VpnHood.AppLib.Abstractions.dll

A store billing failure in store-agnostic vocabulary. Every IBillingProvider translates its store's own errors into a BillingErrorCode here, so nothing above the provider — the app, the client API, the UI — ever learns which store failed or how that store spells its errors. Data carries the code and the store's own message across the client API (the UI reads Data["BillingErrorCode"] / Data["StoreMessage"]).

public sealed class BillingException : Exception, ISerializable
Inheritance
BillingException
Implements
Inherited Members

Constructors

BillingException(BillingErrorCode, string, Exception?)

Initializes a new instance of the BillingException class.

public BillingException(BillingErrorCode code, string message, Exception? innerException = null)

Parameters

code BillingErrorCode

The failure's code.

message string

The store's own message.

innerException Exception

The store's error, or null.

Properties

Code

Gets the failure's code.

public BillingErrorCode Code { get; }

Property Value

BillingErrorCode