2 // XmlSchemaValidationException.cs
5 // Atsushi Enomoto <atsushi@ximian.com>
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34 using System.Globalization;
35 using System.Runtime.Serialization;
36 using System.Security.Permissions;
38 namespace System.Xml.Schema
41 public class XmlSchemaValidationException : XmlSchemaException
43 protected XmlSchemaValidationException ()
48 protected XmlSchemaValidationException (string message)
53 protected XmlSchemaValidationException (SerializationInfo info, StreamingContext context)
54 : base (info, context)
58 public XmlSchemaValidationException (string message, Exception innerException, int lineNumber, int linePosition)
59 : base (message, lineNumber, linePosition, null, null, innerException)
63 internal XmlSchemaValidationException (string message, int lineNumber, int linePosition,
64 XmlSchemaObject sourceObject, string sourceUri, Exception innerException)
65 : base (message, lineNumber, linePosition, sourceObject, sourceUri, innerException)
69 internal XmlSchemaValidationException (string message, object sender,
70 string sourceUri, XmlSchemaObject sourceObject, Exception innerException)
71 : base (message, sender, sourceUri, sourceObject, innerException)
75 internal XmlSchemaValidationException (string message, XmlSchemaObject sourceObject,
76 Exception innerException)
77 : base (message, sourceObject, innerException)
81 public XmlSchemaValidationException (string message, Exception innerException)
82 : base (message, innerException)
87 [SecurityPermission (SecurityAction.LinkDemand,
88 Flags=SecurityPermissionFlag.SerializationFormatter)]
90 public override void GetObjectData (
91 SerializationInfo info, StreamingContext context)
93 base.GetObjectData (info, context);