36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace OemanTrader.Domain.Exceptions
|
|
{
|
|
public class InsufficientFundsException : Exception
|
|
{
|
|
public double AccountBalance { get; set; }
|
|
public double RequiredBalance { get; set; }
|
|
|
|
public InsufficientFundsException(double accountBalance, double requiredBalance)
|
|
{
|
|
AccountBalance = accountBalance;
|
|
RequiredBalance = requiredBalance;
|
|
}
|
|
|
|
public InsufficientFundsException(double accountBalance, double requiredBalance, string? message) : base(message)
|
|
{
|
|
AccountBalance = accountBalance;
|
|
RequiredBalance = requiredBalance;
|
|
}
|
|
|
|
public InsufficientFundsException(double accountBalance, double requiredBalance, string? message, Exception? innerException) : base(message, innerException)
|
|
{
|
|
AccountBalance = accountBalance;
|
|
RequiredBalance = requiredBalance;
|
|
}
|
|
|
|
|
|
}
|
|
}
|