namespace OpenWarehouse.auth.api.Common.Exemptions; public class AccountExemptions : Exception { private Dictionary _otherProblem; private string _message; private bool _accountExist; public bool AccountExist { get => _accountExist; set => _accountExist = value; } public string Message { get => _message; set => _message = value; } public Dictionary OtherProblem { get => _otherProblem; set => _otherProblem = value; } public AccountExemptions(bool accountExist, string message, Dictionary? otherProblem = null) { _otherProblem = otherProblem ?? new Dictionary(); _accountExist = accountExist; _message = message; } }