60 lines
3.0 KiB
C#
60 lines
3.0 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.Security
|
|
{
|
|
/// <summary>The exception that is thrown when there is a syntax error in XML parsing. This class cannot be inherited.</summary>
|
|
// Token: 0x020005DD RID: 1501
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public sealed class XmlSyntaxException : SystemException
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.XmlSyntaxException" /> class with default properties.</summary>
|
|
// Token: 0x060036B0 RID: 14000 RVA: 0x000BB8E4 File Offset: 0x000B9AE4
|
|
public XmlSyntaxException()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.XmlSyntaxException" /> class with the line number where the exception was detected.</summary>
|
|
/// <param name="lineNumber">The line number of the XML stream where the XML syntax error was detected. </param>
|
|
// Token: 0x060036B1 RID: 14001 RVA: 0x000BB8EC File Offset: 0x000B9AEC
|
|
public XmlSyntaxException(int lineNumber)
|
|
: base(string.Format(Locale.GetText("Invalid syntax on line {0}."), lineNumber))
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.XmlSyntaxException" /> class with a specified error message and the line number where the exception was detected.</summary>
|
|
/// <param name="lineNumber">The line number of the XML stream where the XML syntax error was detected. </param>
|
|
/// <param name="message">The error message that explains the reason for the exception. </param>
|
|
// 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))
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.XmlSyntaxException" /> class with a specified error message.</summary>
|
|
/// <param name="message">The error message that explains the reason for the exception. </param>
|
|
// Token: 0x060036B3 RID: 14003 RVA: 0x000BB92C File Offset: 0x000B9B2C
|
|
public XmlSyntaxException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.XmlSyntaxException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
|
|
/// <param name="message">The error message that explains the reason for the exception. </param>
|
|
/// <param name="inner">The exception that is the cause of the current exception. If the <paramref name="inner" /> parameter is not null, the current exception is raised in a catch block that handles the inner exception. </param>
|
|
// 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)
|
|
{
|
|
}
|
|
}
|
|
}
|