RuntimeWrappedException mono updates.
authorZoltan Varga <vargaz@gmail.com>
Thu, 22 Jan 2015 17:16:33 +0000 (12:16 -0500)
committerMarek Safar <marek.safar@gmail.com>
Mon, 2 May 2016 22:07:44 +0000 (00:07 +0200)
mcs/class/referencesource/mscorlib/system/runtime/compilerservices/RuntimeWrappedException.cs

index 14f68188d059685ed9e8b30b4dd9ef61dca0f5ba..aea5d9ec63fa8b6a7ce2dd88f8ad3d2c46b61a69 100644 (file)
@@ -23,6 +23,13 @@ namespace System.Runtime.CompilerServices {
     [Serializable]
     public sealed class RuntimeWrappedException : Exception
     {
+#if MONO
+               // Called by the runtime
+        private RuntimeWrappedException() : base(Environment.GetResourceString("RuntimeWrappedException")) {
+            SetErrorCode(System.__HResults.COR_E_RUNTIMEWRAPPED);
+               }
+#endif
+
         private RuntimeWrappedException(Object thrownObject)
             : base(Environment.GetResourceString("RuntimeWrappedException")) {
             SetErrorCode(System.__HResults.COR_E_RUNTIMEWRAPPED);