Using the StackTrace within the Exception object is very cool. I am a little confused with one thing though and that is re-throwing an exception. Examining the stack trace within the called method (where the error occurs) reveals the exact line number of the exception - very cool.
From there, I typically just say 'Throw', not re-throwing a new exception, which would then hit the try/catch of the calling method. Looking at the stack trace again here now replaces the originating line number of the error w/ the line number of the 'Throw'.
What I don't understand is how to determine the originating line number of the exception from the "root" method. Heck, I'm not even sure if line numbers will show in a production release build of the code?!?!
I'd love to hear from anyone really familiar with exception handling.
After a couple months of reading many of your postings, I thought I'd jump into the mix! Many thanks to Scott W for letting me play :-)
Now the standard introduction type stuff: I live and work in Pittsburgh, PA as a senior software engineer. I've been using .NET for a couple of years now (hard to believe its been that long), mostly on the ASP.NET side.
Hope to get to know alot of you! Cheers.