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