mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-06 10:32:13 +01:00
18 lines
498 B
C#
18 lines
498 B
C#
using System;
|
|
namespace BTCPayServer.Abstractions.Custodians;
|
|
public class CustodianApiException : Exception
|
|
{
|
|
public int HttpStatus { get; }
|
|
public string Code { get; }
|
|
|
|
public CustodianApiException(int httpStatus, string code, string message, System.Exception ex) : base(message, ex)
|
|
{
|
|
HttpStatus = httpStatus;
|
|
Code = code;
|
|
}
|
|
|
|
public CustodianApiException(int httpStatus, string code, string message) : this(httpStatus, code, message, null)
|
|
{
|
|
}
|
|
}
|
|
|