public CustomException(ErrorCode error, int accountNumber) { ErrorCode = error.ToString(); ErrorMessage = error.GetDisplayAttribute().Name; AccountNumber = accountNumber; }