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
-~----------~----~----~----~------~----~------~--~---

Reply via email to