.net - Try...Catch...Finally - can "ex" tell you where the exception happened? -
in following:
try code, throws exception catch ex exception debug.print(ex.[some property contains exception location] end try
are there properties of ex variable can tell line or procedure in exception occurred? i'm using vb.net.
it sounds need ex.stacktrace or ex.targetsite
https://msdn.microsoft.com/en-us/library/system.exception.stacktrace(v=vs.110).aspx
https://msdn.microsoft.com/en-us/library/system.exception.targetsite(v=vs.110).aspx
i've used these properties myself in c# should same across .net.
Comments
Post a Comment