Sparat innan resan
This commit is contained in:
35
OemanTrader.Domain/Exceptions/InsufficientFundsException.cs
Normal file
35
OemanTrader.Domain/Exceptions/InsufficientFundsException.cs
Normal file
@ -0,0 +1,35 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user