May I how do u use this option (can u provide an example)? After the exception is found, how do u print it out?
Thanks. From: Jonathan Pryor Sent: Saturday, October 10, 2009 10:50 PM To: [email protected] Cc: Mono.Cecil Subject: [mono-cecil] Re: type of Exception thrown On Oct 10, 2009, at 5:52 AM, Wee Li Yen <[email protected]> wrote: Is there anyway I can detect what type of Exception I have thrown? Yes, but it's not easy. You meed to track which type is on the top of the call stack at the point of the throw, and since that could be the result of a method call you'll need to follow all method calls. Furthermore, due to runtime conditionals you may find more than one potential type mdoc[0, 1] provides vaguely similar functionality through the 'mdoc update --exceptions' option, but does this by instead tracking which exception types are created (which is an easier though incorrect algorithm). - Jon [0] http://go-mono.com/docs/monodoc.ashx?link=man:mdoc-update(1) [1] http://anonsvn.mono-project.com/viewvc/trunk/mcs/tools/mdoc/ --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
