mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-06 18:41:12 +01:00
14 lines
551 B
C#
14 lines
551 B
C#
|
namespace BTCPayServer.Abstractions.Custodians;
|
||
|
|
||
|
public class CannotWithdrawException : CustodianApiException
|
||
|
|
||
|
{
|
||
|
public CannotWithdrawException(ICustodian custodian, string paymentMethod, string message) : base(403, "cannot-withdraw", message)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public CannotWithdrawException(ICustodian custodian, string paymentMethod, string targetAddress, CustodianApiException originalException) : base(403, "cannot-withdraw", $"{custodian.Name} cannot withdraw {paymentMethod} to '{targetAddress}': {originalException.Message}")
|
||
|
{
|
||
|
}
|
||
|
}
|