icelava.net

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

Reply to an Existing Message

The message you are replying to: Signs your colleague may not be a good developer #8
icelava wrote the following post at 08-31-2010 23:15:

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.


   
Tags




Powered by Community Server, by Telligent Systems