icelava.net

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

Signs your colleague may not be a good developer #8

  •  08-31-2010, 23:15

    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 Complete Thread
Powered by Community Server, by Telligent Systems