2010-03-01 Gonzalo Paniagua Javier <gonzalo@novell.com>
[mono.git] / mcs / class / System / System.ComponentModel.Design / CheckoutException.cs
index 3344b730c2cb1282df2c05ed30ad3f3c31b21ed3..d3fefb77bf803e442f67526d817447f92228b59d 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System;
 using System.Runtime.InteropServices;
+using System.Runtime.Serialization;
 
 namespace System.ComponentModel.Design
 {
+#if NET_2_0
+       [Serializable]
+#endif
        public class CheckoutException : ExternalException
        {
-               public static readonly CheckoutException Canceled = new CheckoutException ();
+               public static readonly CheckoutException Canceled = new CheckoutException (
+                       "The user canceled the checkout.",
+#if NET_2_0
+                       -2147467260);
+#else
+                       -2147467259);
+#endif
 
                public CheckoutException()
-                       : this (null, 0)
+                       : base ()
                {
                }
 
                public CheckoutException (string message)
-                       : this (message, 0)
+                       : base (message)
                {
                }
 
@@ -52,5 +63,17 @@ namespace System.ComponentModel.Design
                        : base (message, errorCode)
                {
                }
+
+#if NET_2_0
+               public CheckoutException (string message, Exception innerException)
+                       : base (message, innerException)
+               {
+               }
+
+               protected CheckoutException (SerializationInfo info, StreamingContext context)
+                       : base (info, context)
+               {
+               }
+#endif
        }
 }