System.Xml.XmlConvert.CreateException C# (CSharp) Method

CreateException() static private method

static private CreateException ( string res, string arg, ExceptionType exceptionType, int lineNo, int linePos ) : Exception
res string
arg string
exceptionType ExceptionType
lineNo int
linePos int
return System.Exception
        internal static Exception CreateException(string res, string arg, ExceptionType exceptionType, int lineNo, int linePos)
        {
            switch (exceptionType)
            {
                case ExceptionType.ArgumentException:
                    return new ArgumentException(string.Format(res, arg));
                case ExceptionType.XmlException:
                default:
                    return new XmlException(res, arg, lineNo, linePos);
            }
        }

Same methods

XmlConvert::CreateException ( string res, ExceptionType exceptionType ) : Exception
XmlConvert::CreateException ( string res, ExceptionType exceptionType, int lineNo, int linePos ) : Exception
XmlConvert::CreateException ( string res, string arg, ExceptionType exceptionType ) : Exception