On 26/01/07 16:36 Dan Noe wrote:

> ...At work we use C# and I constantly see code like:
> 
> try
> {
>       // do some stuff
> }
> catch (Exception)
> {
>       throw new UnrelatedException();
> }

I've not had the pleasure or pain of using C#, so I'll take a wild guess and
say it's just like Java in that the compiler whines that certain operations
require exception handling.

So in the interest of good programming style (catch potential exceptions for
things like communicating over a socket) it encourages bad programmers to
put some code that ignores errors.

Reply via email to