52 lines
2.8 KiB
C#
52 lines
2.8 KiB
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>The exception that is thrown when an invalid Uniform Resource Identifier (URI) is detected.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x02000300 RID: 768
|
|
[Serializable]
|
|
public class UriFormatException : FormatException, ISerializable
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.UriFormatException" /> class.</summary>
|
|
// Token: 0x06001BD4 RID: 7124 RVA: 0x000681E8 File Offset: 0x000663E8
|
|
public UriFormatException()
|
|
: base(global::Locale.GetText("Invalid URI format"))
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.UriFormatException" /> class with the specified message.</summary>
|
|
/// <param name="textString">The error message string. </param>
|
|
// Token: 0x06001BD5 RID: 7125 RVA: 0x000681FC File Offset: 0x000663FC
|
|
public UriFormatException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001BD6 RID: 7126 RVA: 0x00068208 File Offset: 0x00066408
|
|
public UriFormatException(string message, Exception exception)
|
|
: base(message, exception)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.UriFormatException" /> class from the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> instances.</summary>
|
|
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that contains the information that is required to serialize the new <see cref="T:System.UriFormatException" />. </param>
|
|
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains the source of the serialized stream that is associated with the new <see cref="T:System.UriFormatException" />. </param>
|
|
// Token: 0x06001BD7 RID: 7127 RVA: 0x00068214 File Offset: 0x00066414
|
|
protected UriFormatException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> instance with the data that is needed to serialize the <see cref="T:System.UriFormatException" />.</summary>
|
|
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that will hold the serialized data for the <see cref="T:System.UriFormatException" />.</param>
|
|
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains the destination of the serialized stream that is associated with the new <see cref="T:System.UriFormatException" />. </param>
|
|
// Token: 0x06001BD8 RID: 7128 RVA: 0x00068220 File Offset: 0x00066420
|
|
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
|
|
{
|
|
base.GetObjectData(info, context);
|
|
}
|
|
}
|
|
}
|