Which exception

Tom tom at nospam.com
Sun Oct 29 16:52:00 PST 2006


Hey,

lets say I have something like the following:

try {
	// Code that throws some exception I don't know of.
} catch (Exception ex) {
	writefln(ex.classinfo.name); // works but it's not what I need
}

Is there some way to get the name of the class 'ex' is instance of (the 
derived class and not the base class)?

Thanks in advance,
--
Tom;



More information about the Digitalmars-d mailing list