What to use in Catch Block throw or return C# .Net

Last Reply on Jul 25, 2013 02:12 AM By Mudassar

Posted on Jul 25, 2013 02:11 AM

in catch block we use throw ,throws,return etc.... 

My question is which one is better one over the remaining ,what is the diffrence between them?

Posted on Jul 25, 2013 02:12 AM

Try catch is useful when you want to hide the exceptiion and save it in some error log.

Simply throwing the Exception in does not make any sense as that will happen by default when you don't have try catch