icelava.net

why be normal?
Welcome to icelava.net Sign in | Help
in Search

Signs your colleague may not be a good developer #8

Last post 08-31-2010, 23:15 by icelava. 0 replies.
Sort Posts: Previous Next
  •  08-31-2010, 23:15 7086

    Signs your colleague may not be a good developer #8

    catch (Exception ex)
    {
      if (IsWrongPassword(ex))
        return "INCORRECT_PASSWORD";

      throw new Exception(ex.Message, ex);
    }

    It's such a pity that a person who wisely makes meaningful method names, does not know that an Exception object is rethrowable.

    Filed under: ,
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems