2017-09-13 15:47:34 +09:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2017-09-15 16:06:57 +09:00
|
|
|
|
namespace BTCPayServer.Services.Rates
|
2017-09-13 15:47:34 +09:00
|
|
|
|
{
|
|
|
|
|
public class RateUnavailableException : Exception
|
|
|
|
|
{
|
2017-10-27 17:53:04 +09:00
|
|
|
|
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
|
|
|
|
|
2017-10-27 17:53:04 +09:00
|
|
|
|
public string Currency
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-09-13 15:47:34 +09:00
|
|
|
|
}
|