mscorlib(4.0.0.0) API with additions
XmlSchemaValidationException.cs
3 
4 namespace System.Xml.Schema
5 {
9  {
10  private object sourceNodeObject;
11 
14  public object SourceObject => sourceNodeObject;
15 
20  : base(info, context)
21  {
22  }
23 
31  [SecurityPermission(SecurityAction.LinkDemand, SerializationFormatter = true)]
32  public override void GetObjectData(SerializationInfo info, StreamingContext context)
33  {
34  base.GetObjectData(info, context);
35  }
36 
39  : base(null)
40  {
41  }
42 
45  public XmlSchemaValidationException(string message)
46  : base(message, (Exception)null, 0, 0)
47  {
48  }
49 
53  public XmlSchemaValidationException(string message, Exception innerException)
54  : base(message, innerException, 0, 0)
55  {
56  }
57 
63  public XmlSchemaValidationException(string message, Exception innerException, int lineNumber, int linePosition)
64  : base(message, innerException, lineNumber, linePosition)
65  {
66  }
67 
68  internal XmlSchemaValidationException(string res, string[] args)
69  : base(res, args, null, null, 0, 0, null)
70  {
71  }
72 
73  internal XmlSchemaValidationException(string res, string arg)
74  : base(res, new string[1]
75  {
76  arg
77  }, null, null, 0, 0, null)
78  {
79  }
80 
81  internal XmlSchemaValidationException(string res, string arg, string sourceUri, int lineNumber, int linePosition)
82  : base(res, new string[1]
83  {
84  arg
85  }, null, sourceUri, lineNumber, linePosition, null)
86  {
87  }
88 
89  internal XmlSchemaValidationException(string res, string sourceUri, int lineNumber, int linePosition)
90  : base(res, null, null, sourceUri, lineNumber, linePosition, null)
91  {
92  }
93 
94  internal XmlSchemaValidationException(string res, string[] args, string sourceUri, int lineNumber, int linePosition)
95  : base(res, args, null, sourceUri, lineNumber, linePosition, null)
96  {
97  }
98 
99  internal XmlSchemaValidationException(string res, string[] args, Exception innerException, string sourceUri, int lineNumber, int linePosition)
100  : base(res, args, innerException, sourceUri, lineNumber, linePosition, null)
101  {
102  }
103 
104  internal XmlSchemaValidationException(string res, string[] args, object sourceNode)
105  : base(res, args, null, null, 0, 0, null)
106  {
107  sourceNodeObject = sourceNode;
108  }
109 
110  internal XmlSchemaValidationException(string res, string[] args, string sourceUri, object sourceNode)
111  : base(res, args, null, sourceUri, 0, 0, null)
112  {
113  sourceNodeObject = sourceNode;
114  }
115 
116  internal XmlSchemaValidationException(string res, string[] args, string sourceUri, int lineNumber, int linePosition, XmlSchemaObject source, object sourceNode)
117  : base(res, args, null, sourceUri, lineNumber, linePosition, source)
118  {
119  sourceNodeObject = sourceNode;
120  }
121 
124  protected internal void SetSourceObject(object sourceObject)
125  {
126  sourceNodeObject = sourceObject;
127  }
128  }
129 }
XmlSchemaValidationException()
Initializes a new instance of the T:System.Xml.Schema.XmlSchemaValidationException class.
Describes a set of security permissions applied to code. This class cannot be inherited.
Definition: __Canon.cs:3
Describes the source and destination of a given serialized stream, and provides an additional caller-...
SecurityAction
Specifies the security actions that can be performed using declarative security.
internal void SetSourceObject(object sourceObject)
Sets the XML node that causes the error.
override void GetObjectData(SerializationInfo info, StreamingContext context)
Constructs a new T:System.Xml.Schema.XmlSchemaValidationException object with the given T:System....
XmlSchemaValidationException(string message, Exception innerException)
Initializes a new instance of the T:System.Xml.Schema.XmlSchemaValidationException class with the exc...
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
object SourceObject
Gets the XML node that caused this T:System.Xml.Schema.XmlSchemaValidationException.
Exception()
Initializes a new instance of the T:System.Exception class.
Definition: Exception.cs:286
XmlSchemaValidationException(string message)
Initializes a new instance of the T:System.Xml.Schema.XmlSchemaValidationException class with the exc...
XmlSchemaValidationException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the T:System.Xml.Schema.XmlSchemaValidationException class with the T:S...
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
Definition: Exception.cs:22
Specifies that the class can be serialized.
XmlSchemaValidationException(string message, Exception innerException, int lineNumber, int linePosition)
Initializes a new instance of the T:System.Xml.Schema.XmlSchemaValidationException class with the exc...
Returns detailed information about the schema exception.
Represents the exception thrown when XML Schema Definition Language (XSD) schema validation errors an...