[Mono-list] Using Exceptions with external Plugins

Pablo Fischer pablo@pablo.com.mx
Mon, 28 Jun 2004 17:49:12 -0500


--=-Xky4649dfUTbKnApKAK2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi!

I'm loading many plugins (assemblies, dll) from my App.exe, however
sometimes a plugin can throw an exception, how can I catch it?, I can
only catch the System.Reflection.TargetInvocationException cause I'm
using Reflection/Invoke techniques.. but I can't 'catch' 'internal
Exceptions' of these plugins.

For example, a Plugin.dll can throw a
CookComputing.XmlRpc.XmlRpcFaultException and it doesn't works, however
System.Reflection.TargetInvocationException seems to catch it, but just=20
the Invoke Exception.

Any ideas?
Pablo
--=20
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
Fingerprint:  5973 0F10 543F 54AE 1E41  EC81 0840 A10A 74A4 E5C0
http://www.pablo.com.mx=20
http://www.debianmexico.org

--=-Xky4649dfUTbKnApKAK2
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
	digitalmente

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBA4KBnCEChCnSk5cARArHmAJ9C3DBXBjt1FXKRjWIQdCk9PosDoACcDcMp
ERh8Qhay3GfY6LNuYSAGGSc=
=++6P
-----END PGP SIGNATURE-----

--=-Xky4649dfUTbKnApKAK2--