using System; using System.Runtime.InteropServices; using System.Runtime.Serialization; namespace System.Security { /// The exception that is thrown when there is a syntax error in XML parsing. This class cannot be inherited. // Token: 0x020005DD RID: 1501 [ComVisible(true)] [Serializable] public sealed class XmlSyntaxException : SystemException { /// Initializes a new instance of the class with default properties. // Token: 0x060036B0 RID: 14000 RVA: 0x000BB8E4 File Offset: 0x000B9AE4 public XmlSyntaxException() { } /// Initializes a new instance of the class with the line number where the exception was detected. /// The line number of the XML stream where the XML syntax error was detected. // Token: 0x060036B1 RID: 14001 RVA: 0x000BB8EC File Offset: 0x000B9AEC public XmlSyntaxException(int lineNumber) : base(string.Format(Locale.GetText("Invalid syntax on line {0}."), lineNumber)) { } /// Initializes a new instance of the class with a specified error message and the line number where the exception was detected. /// The line number of the XML stream where the XML syntax error was detected. /// The error message that explains the reason for the exception. // Token: 0x060036B2 RID: 14002 RVA: 0x000BB90C File Offset: 0x000B9B0C public XmlSyntaxException(int lineNumber, string message) : base(string.Format(Locale.GetText("Invalid syntax on line {0} - {1}."), lineNumber, message)) { } /// Initializes a new instance of the class with a specified error message. /// The error message that explains the reason for the exception. // Token: 0x060036B3 RID: 14003 RVA: 0x000BB92C File Offset: 0x000B9B2C public XmlSyntaxException(string message) : base(message) { } /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. /// The error message that explains the reason for the exception. /// The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception. // Token: 0x060036B4 RID: 14004 RVA: 0x000BB938 File Offset: 0x000B9B38 public XmlSyntaxException(string message, Exception inner) : base(message, inner) { } // Token: 0x060036B5 RID: 14005 RVA: 0x000BB944 File Offset: 0x000B9B44 internal XmlSyntaxException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }