btcpayserver/BTCPayServer.Client/GreenFieldAPIException.cs

18 lines
499 B
C#
Raw Normal View History

2020-06-29 04:44:35 +02:00
using System;
namespace BTCPayServer.Client
{
2022-01-14 05:05:23 +01:00
public class GreenfieldAPIException : Exception
{
2022-01-14 05:05:23 +01:00
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; }
}
}