btcpayserver/BTCPayServer/Services/Rates/RateUnavailableException.cs

22 lines
516 B
C#
Raw Normal View History

2017-09-13 15:47:34 +09:00
using System;
using System.Collections.Generic;
using System.Text;
namespace BTCPayServer.Services.Rates
2017-09-13 15:47:34 +09:00
{
public class RateUnavailableException : Exception
{
public RateUnavailableException(string currency) : base("Rate unavailable for currency " + currency)
{
if (currency == null)
throw new ArgumentNullException(nameof(currency));
Currency = currency;
}
2017-09-13 15:47:34 +09:00
public string Currency
{
get; set;
}
}
2017-09-13 15:47:34 +09:00
}