mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
18 lines
499 B
C#
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; }
|
|
}
|
|
}
|