| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System.ComponentModel; |
| | | 5 | | using System.Runtime.Serialization; |
| | | 6 | | |
| | | 7 | | namespace System |
| | | 8 | | { |
| | | 9 | | /// <summary> |
| | | 10 | | /// An exception class used when an invalid Uniform Resource Identifier is detected. |
| | | 11 | | /// </summary> |
| | | 12 | | [Serializable] |
| | | 13 | | [System.Runtime.CompilerServices.TypeForwardedFrom("System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c5 |
| | | 14 | | public class UriFormatException : FormatException, ISerializable |
| | | 15 | | { |
| | 0 | 16 | | public UriFormatException() : base() |
| | 0 | 17 | | { |
| | 0 | 18 | | } |
| | | 19 | | |
| | 0 | 20 | | public UriFormatException(string? textString) : base(textString) |
| | 0 | 21 | | { |
| | 0 | 22 | | } |
| | | 23 | | |
| | 0 | 24 | | public UriFormatException(string? textString, Exception? e) : base(textString, e) |
| | 0 | 25 | | { |
| | 0 | 26 | | } |
| | | 27 | | |
| | | 28 | | [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma |
| | | 29 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| | 0 | 30 | | protected UriFormatException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(seri |
| | 0 | 31 | | { |
| | 0 | 32 | | } |
| | | 33 | | |
| | | 34 | | [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma |
| | | 35 | | void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext) |
| | 0 | 36 | | { |
| | 0 | 37 | | base.GetObjectData(serializationInfo, streamingContext); |
| | 0 | 38 | | } |
| | | 39 | | } |
| | | 40 | | } |
| | | 41 | | |