mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 01:43:50 +01:00
f8f98ab7f0
* Allow overrides on all methods * Add non-returning SendHttpRequest methods * Use SendHttpRequest consistently * Use file-scoped namespace * Rates: Set default null value for currencyPair * Ensure it works with instances which have BTCPAY_ROOTPATH set
16 lines
437 B
C#
16 lines
437 B
C#
using System;
|
|
|
|
namespace BTCPayServer.Client;
|
|
|
|
public class GreenfieldAPIException : Exception
|
|
{
|
|
public GreenfieldAPIException(int httpCode, Models.GreenfieldAPIError error) : base(error.Message)
|
|
{
|
|
if (error == null) throw new ArgumentNullException(nameof(error));
|
|
HttpCode = httpCode;
|
|
APIError = error;
|
|
}
|
|
public Models.GreenfieldAPIError APIError { get; }
|
|
public int HttpCode { get; set; }
|
|
}
|