Update of /cvsroot/netreflector/NetReflector/src/NetReflector/Serialisers
In directory sc8-pr-cvs1:/tmp/cvs-serv2557/src/NetReflector/Serialisers
Modified Files:
XmlMemberSerialiser.cs
Log Message:
setting a reflector property that throws an exception now correctly exposes the thrown exception (unwraps it from a TargetInvocationException)
Index: XmlMemberSerialiser.cs
===================================================================
RCS file: /cvsroot/netreflector/NetReflector/src/NetReflector/Serialisers/XmlMemberSerialiser.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** XmlMemberSerialiser.cs 12 Dec 2003 21:30:17 -0000 1.2
--- XmlMemberSerialiser.cs 21 Jan 2004 09:42:49 -0000 1.3
***************
*** 83,89 ****
if (serialiser == null)
{
! throw new NetReflectorException(
! string.Format(@"Type with NetReflector name ""{0}"" does not exist. The name may be incorrect or the assembly containing the type might not be loaded.
! Xml: {1}", typeNode.InnerText, childNode.OuterXml));
}
return serialiser.Type;
--- 83,89 ----
if (serialiser == null)
{
! string msg = @"Type with NetReflector name ""{0}"" does not exist. The name may be incorrect or the assembly containing the type might not be loaded.
! Xml: {1}";
! throw new NetReflectorException(string.Format(msg, typeNode.InnerText, childNode.OuterXml));
}
return serialiser.Type;
|