[mapguide-commits] r7666 - trunk/MgDev/Oem/SWIGEx/Lib/csharp
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sat Jul 6 11:27:07 PDT 2013
Author: jng
Date: 2013-07-06 11:27:07 -0700 (Sat, 06 Jul 2013)
New Revision: 7666
Modified:
trunk/MgDev/Oem/SWIGEx/Lib/csharp/csharphead.swg
Log:
#2315: Put in a message that should hopefully be more meaningful should we ever encounter this problem in the future. This was verified by building the .net wrapper APIs with the fix for #2316 reverted and re-running our .net test runner. Instead of this message:
* Exception of type "System.Exception" was thrown
We now get this:
* Exception (OSGeo.MapGuide.MgResourceTagNotFoundException) was thrown. No .net type could be found for this exception type
Which explains things much better!
Modified: trunk/MgDev/Oem/SWIGEx/Lib/csharp/csharphead.swg
===================================================================
--- trunk/MgDev/Oem/SWIGEx/Lib/csharp/csharphead.swg 2013-07-06 17:52:51 UTC (rev 7665)
+++ trunk/MgDev/Oem/SWIGEx/Lib/csharp/csharphead.swg 2013-07-06 18:27:07 UTC (rev 7666)
@@ -81,7 +81,7 @@
}
}
if (type == null)
- exception = new Exception();
+ exception = new Exception("Exception (" + className + ") was thrown. No .net type could be found for this exception type");
else
exception = Activator.CreateInstance(type, parameters);
}
More information about the mapguide-commits
mailing list