Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XslTransformException.cs
Go to the documentation of this file.
1
using
System.Resources
;
2
using
System.Runtime.Serialization
;
3
using
System.Text
;
4
5
namespace
System.Xml.Xsl
;
6
7
internal
class
XslTransformException
:
XsltException
8
{
9
public
XslTransformException
(
Exception
inner,
string
res
,
params
string
[]
args
)
10
:
base
(
CreateMessage
(
res
,
args
), inner)
11
{
12
}
13
14
public
XslTransformException
(
SerializationInfo
info
,
StreamingContext
context)
15
:
base
(
info
, context)
16
{
17
}
18
19
public
XslTransformException
(
string
message)
20
:
base
(
CreateMessage
(message, (
string
[])
null
),
null
)
21
{
22
}
23
24
internal
XslTransformException
(
string
res
,
params
string
[]
args
)
25
:
this
(
null
,
res
,
args
)
26
{
27
}
28
29
internal
static
string
CreateMessage
(
string
res
,
params
string
[]
args
)
30
{
31
string
text
=
null
;
32
try
33
{
34
if
(
args
==
null
)
35
{
36
text
=
res
;
37
}
38
else
39
{
40
text
=
string
.Format(
res
,
args
);
41
}
42
}
43
catch
(
MissingManifestResourceException
)
44
{
45
}
46
if
(
text
!=
null
)
47
{
48
return
text
;
49
}
50
StringBuilder
stringBuilder
=
new
StringBuilder
(
res
);
51
if
(
args
!=
null
&&
args
.Length != 0)
52
{
53
stringBuilder
.Append(
'('
);
54
stringBuilder
.Append(
args
[0]);
55
for
(
int
i = 1; i <
args
.Length; i++)
56
{
57
stringBuilder
.Append(
", "
);
58
stringBuilder
.Append(
args
[i]);
59
}
60
stringBuilder
.Append(
')'
);
61
}
62
return
stringBuilder
.ToString();
63
}
64
65
internal
virtual
string
FormatDetailedMessage
()
66
{
67
return
Message
;
68
}
69
70
public
override
string
ToString
()
71
{
72
string
text
=
GetType
().
FullName
;
73
string
text2
=
FormatDetailedMessage
();
74
if
(
text2
!=
null
&&
text2
.Length > 0)
75
{
76
text
=
text
+
": "
+
text2
;
77
}
78
if
(
base
.InnerException !=
null
)
79
{
80
text
=
text
+
" ---> "
+
base
.InnerException.ToString() +
Environment.NewLine
+
" "
+
CreateMessage
(
System
.
SR
.
Xml_EndOfInnerExceptionStack
);
81
}
82
if
(
StackTrace
!=
null
)
83
{
84
text
=
text
+
Environment.NewLine
+
StackTrace
;
85
}
86
return
text
;
87
}
88
}
System.Exception.StackTrace
virtual ? string StackTrace
Definition
Exception.cs:143
System.Exception.GetType
new Type GetType()
Definition
Exception.cs:437
System.Exception
Definition
Exception.cs:15
System.Resources.MissingManifestResourceException
Definition
MissingManifestResourceException.cs:9
System.Runtime.Serialization.SerializationInfo
Definition
SerializationInfo.cs:7
System.SR.Xml_EndOfInnerExceptionStack
static string Xml_EndOfInnerExceptionStack
Definition
SR.cs:1826
System.SR
Definition
SR.cs:7
System.Text.StringBuilder
Definition
StringBuilder.cs:14
System.Type.FullName
string? FullName
Definition
Type.cs:47
System.Xml.Xsl.XslTransformException.XslTransformException
XslTransformException(SerializationInfo info, StreamingContext context)
Definition
XslTransformException.cs:14
System.Xml.Xsl.XslTransformException.XslTransformException
XslTransformException(string message)
Definition
XslTransformException.cs:19
System.Xml.Xsl.XslTransformException.CreateMessage
static string CreateMessage(string res, params string[] args)
Definition
XslTransformException.cs:29
System.Xml.Xsl.XslTransformException.XslTransformException
XslTransformException(Exception inner, string res, params string[] args)
Definition
XslTransformException.cs:9
System.Xml.Xsl.XslTransformException.XslTransformException
XslTransformException(string res, params string[] args)
Definition
XslTransformException.cs:24
System.Xml.Xsl.XslTransformException.FormatDetailedMessage
virtual string FormatDetailedMessage()
Definition
XslTransformException.cs:65
System.Xml.Xsl.XslTransformException.ToString
override string ToString()
Definition
XslTransformException.cs:70
System.Xml.Xsl.XslTransformException
Definition
XslTransformException.cs:8
System.Xml.Xsl.XsltException.Message
override string Message
Definition
XsltException.cs:31
System.Xml.Xsl.XsltException
Definition
XsltException.cs:12
string
System.Resources
Definition
FastResourceComparer.cs:5
System.Runtime.Serialization
Definition
SerializationGuard.cs:3
System.Text
Definition
ConsoleEncoding.cs:1
System.Xml.Xsl
Definition
BranchingContext.cs:1
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.text
@ text
System.ExceptionArgument.info
@ info
System
Definition
BlockingCollection.cs:8
System.Runtime.Serialization.StreamingContext
Definition
StreamingContext.cs:6
source
System.Private.Xml
System.Xml.Xsl
XslTransformException.cs
Generated by
1.10.0