Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in...
[mono.git] / mcs / class / System.XML / System.Xml.Schema / XmlSchemaValidationException.cs
index df9258c1908ca556be1a1c55c6662a62f88a349c..66f65f0d9fa52e6a577110e52de578dfbe61bcfd 100644 (file)
@@ -40,12 +40,14 @@ namespace System.Xml.Schema
        [Serializable]
        public class XmlSchemaValidationException : XmlSchemaException
        {
-               protected XmlSchemaValidationException ()
+               object source_object;
+
+               public XmlSchemaValidationException ()
                        : base ()
                {
                }
 
-               protected XmlSchemaValidationException (string message)
+               public XmlSchemaValidationException (string message)
                        : base (message)
                {
                }
@@ -94,6 +96,11 @@ namespace System.Xml.Schema
                // Never use it. It actually does nothing even on MS.NET 2.0.
                protected internal void SetSourceObject (object o)
                {
+                       source_object = o;
+               }
+
+               public object SourceObject {
+                       get { return source_object; }
                }
        }
 }