[runtime] Updates comments.
[mono.git] / mcs / class / corlib / System / NotFiniteNumberException.cs
index b0e1ae620a128b8835a53794961b7d801da79661..a67597431ba774ecbc5a20cd947f988d4824e109 100644 (file)
 //
 
 using System.Runtime.Serialization;
+using System.Runtime.InteropServices;
 
 namespace System
 {
        [Serializable]
+       [ComVisible (true)]
        public class NotFiniteNumberException : ArithmeticException
        {
                const int Result = unchecked ((int)0x80131528);
@@ -47,6 +49,7 @@ namespace System
                public NotFiniteNumberException ()
                        : base (Locale.GetText ("The number encountered was not a finite quantity."))
                {
+                       HResult = Result;
                }
 
                public NotFiniteNumberException (double offendingNumber)
@@ -81,6 +84,12 @@ namespace System
                        offending_number = info.GetDouble ("OffendingNumber");
                }
 
+               public NotFiniteNumberException (string message, Exception innerException)
+                       : base (message, innerException)
+               {
+                       HResult = Result;
+               }
+
                // Properties
                public double OffendingNumber {
                        get {