Add WarningException.cs
authorMiguel de Icaza <miguel@gnome.org>
Tue, 24 Sep 2002 18:23:42 +0000 (18:23 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Tue, 24 Sep 2002 18:23:42 +0000 (18:23 -0000)
svn path=/trunk/mcs/; revision=7780

mcs/class/System/System.ComponentModel/WarningException.cs [new file with mode: 0644]

diff --git a/mcs/class/System/System.ComponentModel/WarningException.cs b/mcs/class/System/System.ComponentModel/WarningException.cs
new file mode 100644 (file)
index 0000000..14e7aff
--- /dev/null
@@ -0,0 +1,49 @@
+//------------------------------------------------------------------------------
+// 
+// System.ComponentModel.WarningException.
+//
+// Author:  Asier Llano Palacios, asierllano@infonegocio.com
+//
+//------------------------------------------------------------------------------
+
+using System;
+
+namespace System.ComponentModel {
+
+       public class WarningException : SystemException
+       {
+               private string helpUrl;
+               private string helpTopic;
+       
+               public WarningException( string message ) 
+                       : base( message ) {
+                       helpUrl = null;
+                       helpTopic = null;
+               }
+
+               public WarningException( string message, string helpUrl )
+                       : base( message ) {
+                       this.helpUrl = helpUrl;
+                       this.helpTopic = null;
+               }
+
+               public WarningException( string message, string helpUrl, string helpTopic ) {
+                       this.helpUrl = helpUrl;
+                       this.helpTopic = helpTopic;
+               }
+
+               public string HelpTopic {
+                       get {
+                               return helpTopic;
+                       }
+               }
+
+               public string HelpUrl {
+                       get {
+                               return helpUrl;
+                       }
+               }
+       }
+
+}
+