public AccountCreditsInsufficientException(Entities.Account account, decimal newCredits) : base($"Account {account} has insufficient credits, because {newCredits} is less than required minimum {account.MinimumCredits}") { this.ExternalId = account.ExternalId; this.Description = account.Description; this.CreditsNew = newCredits; this.MinimumCredits = account.MinimumCredits; }
public TransactionBetweenSameAccountsException(Entities.Account account) : base($"Transaction between same accounts {account} not possible") { this.AccountId = account.ExternalId; }
public DebetFromOtherAccountNotAllowedException(Entities.Account account, Entities.Account otherAccount) : base($"Account {account} is not allowed to take credits from {otherAccount}") { this.AccountId = account.ExternalId; this.OtherAccountId = otherAccount.ExternalId; }