J
jez
Two quick questions :
I'm try to using as many as possibly try/catch clauses however :
1) for many methods (such as DataSet.GetXml) there is no specific
exception. Would using the main Exception be giving enough error
information to the user ?
2) for some of my own-made methods I get the following error when
compiling : "not all code paths return a value". This seems to only
happen when I have an if/else without a return in it (even though
there's another if/else in the method that DOES return a value). What
can I do about it ?
jez
I'm try to using as many as possibly try/catch clauses however :
1) for many methods (such as DataSet.GetXml) there is no specific
exception. Would using the main Exception be giving enough error
information to the user ?
2) for some of my own-made methods I get the following error when
compiling : "not all code paths return a value". This seems to only
happen when I have an if/else without a return in it (even though
there's another if/else in the method that DOES return a value). What
can I do about it ?
jez