mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
23 lines
528 B
C#
23 lines
528 B
C#
using System;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class GreenfieldAPIError
|
|
{
|
|
public GreenfieldAPIError()
|
|
{
|
|
|
|
}
|
|
public GreenfieldAPIError(string code, string message)
|
|
{
|
|
code = code ?? "generic-error";
|
|
if (message == null)
|
|
throw new ArgumentNullException(nameof(message));
|
|
Code = code;
|
|
Message = message;
|
|
}
|
|
public string Code { get; set; }
|
|
public string Message { get; set; }
|
|
}
|
|
}
|