I recently found this snippet of code in an old email. This was written by the first developer I ever had to fire
try{
if (variable ==null)
throw new NullReferenceException();
}
catch (NullReferenceException e){
throw new Exception("NullReferenceException");
}
Saturday, May 17, 2008
Subscribe to:
Post Comments (Atom)
3 comments:
omg that is priceless!
Was that part of the infamous exception handling "framework"? hehe
Maybe he had just learned about try/catch and he did not find any better way to use it or he wanted to make his code looks professional! :D:D
I could imagine how much of that framework was like this;)
Post a Comment