May 26, 2009 at 10:10 AM
Edited May 26, 2009 at 10:12 AM
Normally in ent lib HOL as well as documentation I found the code to handle exception in catch block is
rethrow = ExceptionPolicy.HandleException(ex,
But if the method has a return type then this code in catch block gives an error :
Not all code paths return a value
Similarly, in global.asax it gives an error:
A throw statement with no arguments is not allowed outside of a catch clause.
Please suggest the right approach in such cases.