btcpayserver/BTCPayServer.Client/GreenFieldAPIException.cs
2022-01-14 13:46:04 +09:00

18 lines
499 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; }
}
}