Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ CreateException() [5/5]

static Exception System.Xml.XmlConvert.CreateException ( string res,
string[] args,
ExceptionType exceptionType,
int lineNo,
int linePos )
inlinestaticpackage

Definition at line 1408 of file XmlConvert.cs.

1409 {
1410 switch (exceptionType)
1411 {
1412 case ExceptionType.ArgumentException:
1413 return new ArgumentException(string.Format(res, args));
1414 default:
1415 return new XmlException(res, args, lineNo, linePos);
1416 }
1417 }

References System.Xml.ArgumentException, System.Xml.Dictionary, System.Format, and System.Xml.XmlException.