/
XmlSchemaValidationException.cs
81 lines (67 loc) · 3.04 KB
/
XmlSchemaValidationException.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
namespace System.Xml.Schema
{
[Serializable]
[System.Runtime.CompilerServices.TypeForwardedFrom("System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class XmlSchemaValidationException : XmlSchemaException
{
private object? _sourceNodeObject;
[Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
[EditorBrowsable(EditorBrowsableState.Never)]
protected XmlSchemaValidationException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
[Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
[EditorBrowsable(EditorBrowsableState.Never)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
}
public XmlSchemaValidationException() : base(null)
{
}
public XmlSchemaValidationException(string? message) : base(message, ((Exception?)null), 0, 0)
{
}
public XmlSchemaValidationException(string? message, Exception? innerException) : base(message, innerException, 0, 0)
{
}
public XmlSchemaValidationException(string? message, Exception? innerException, int lineNumber, int linePosition) :
base(message, innerException, lineNumber, linePosition)
{
}
internal XmlSchemaValidationException(string? res, string? arg, string? sourceUri, int lineNumber, int linePosition) :
base(res, new string?[] { arg }, null, sourceUri, lineNumber, linePosition, null)
{
}
internal XmlSchemaValidationException(string? res, string?[]? args, string? sourceUri, int lineNumber, int linePosition) :
base(res, args, null, sourceUri, lineNumber, linePosition, null)
{
}
internal XmlSchemaValidationException(string? res, string?[]? args, Exception? innerException, string? sourceUri, int lineNumber, int linePosition) :
base(res, args, innerException, sourceUri, lineNumber, linePosition, null)
{
}
internal XmlSchemaValidationException(string? res, string?[]? args, object sourceNode) :
base(res, args, null, null, 0, 0, null)
{
_sourceNodeObject = sourceNode;
}
public object? SourceObject
{
get { return _sourceNodeObject; }
}
protected internal void SetSourceObject(object? sourceObject)
{
_sourceNodeObject = sourceObject;
}
};
} // namespace System.Xml.Schema