Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / Schema / Inference / XmlSchemaInferenceException.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="XmlSchemaInferenceException.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 // <owner current="true" primary="true">Microsoft</owner> 
6 // <owner current="false" primary="false">Microsoft</owner> 
7 //------------------------------------------------------------------------------
8
9 namespace System.Xml.Schema 
10 {
11     using System;
12     using System.IO;
13     using System.Resources;
14     using System.Runtime.Serialization;
15     using System.Text;
16     using System.Diagnostics;
17     using System.Security.Permissions;
18     using System.Globalization;
19
20     [Serializable]
21     public class XmlSchemaInferenceException : XmlSchemaException 
22     {
23         
24
25         protected XmlSchemaInferenceException(SerializationInfo info, StreamingContext context) : base(info, context){} 
26   
27
28         [SecurityPermissionAttribute(SecurityAction.LinkDemand,SerializationFormatter=true)]
29         public override void GetObjectData(SerializationInfo info, StreamingContext context) 
30         {
31             base.GetObjectData(info, context);
32
33         }
34
35         public XmlSchemaInferenceException() : base(null) 
36         {
37         }
38
39
40         public XmlSchemaInferenceException(String message) : base (message, ((Exception)null), 0, 0) 
41         {
42         }
43
44         public XmlSchemaInferenceException(String message, Exception innerException) : base (message, innerException, 0, 0) 
45         {
46         } 
47
48         /// <include file='doc\XmlSchemaException.uex' path='docs/doc[@for="XmlSchemaException.XmlSchemaException3"]/*' />
49         public XmlSchemaInferenceException(String message, Exception innerException, int lineNumber, int linePosition) : 
50             base(message, innerException, lineNumber, linePosition) 
51         {
52         }
53       
54         internal XmlSchemaInferenceException(string res, string[] args) : base(res, args, null, null, 0, 0, null) 
55         {
56         }
57         
58         internal XmlSchemaInferenceException(string res, string arg) : base(res, new string[] { arg }, null, null, 0, 0, null) 
59         {
60         }
61         internal XmlSchemaInferenceException(string res, string arg, string sourceUri, int lineNumber, int linePosition) :
62             base(res, new string[] { arg }, null, sourceUri, lineNumber, linePosition, null) 
63         {
64         }
65
66         internal XmlSchemaInferenceException(string res, string sourceUri, int lineNumber, int linePosition) :
67             base(res, (string[])null, null, sourceUri, lineNumber, linePosition, null) 
68         {
69         }
70
71         internal XmlSchemaInferenceException(string res, string[] args, string sourceUri, int lineNumber, int linePosition) :
72             base(res, args, null, sourceUri, lineNumber, linePosition, null) 
73         {
74         }
75        
76         internal XmlSchemaInferenceException(string res, int lineNumber, int linePosition) :
77             base (res, null, null, null, lineNumber, linePosition, null) 
78         {
79
80            
81         }
82         
83       
84     }
85 } // namespace System.Xml.Schema
86
87