| | | 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.Net |
| | | 8 | | { |
| | | 9 | | [Serializable] |
| | | 10 | | [System.Runtime.CompilerServices.TypeForwardedFrom("System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c5 |
| | | 11 | | public class CookieException : FormatException, ISerializable |
| | | 12 | | { |
| | 0 | 13 | | public CookieException() : base() |
| | 0 | 14 | | { |
| | 0 | 15 | | } |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// Initializes a new instance of the <see cref='CookieException'/> class with the specified error message. |
| | | 19 | | /// </summary> |
| | | 20 | | /// <param name="message">A <see cref="string"/> that describes the error that occurred.</param> |
| | 0 | 21 | | public CookieException(string? message) : base(message) |
| | 0 | 22 | | { |
| | 0 | 23 | | } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Initializes a new instance of the <see cref='CookieException'/> class with the specified error message |
| | | 27 | | /// and a reference to the inner exception that is the cause of this exception. |
| | | 28 | | /// </summary> |
| | | 29 | | /// <param name="message">A <see cref="string"/> that describes the error that occurred.</param> |
| | | 30 | | /// <param name="innerException">The exception that is the cause of the current exception.</param> |
| | 0 | 31 | | public CookieException(string? message, Exception? innerException) : base(message, innerException) |
| | 0 | 32 | | { |
| | 0 | 33 | | } |
| | | 34 | | |
| | | 35 | | [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma |
| | | 36 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| | | 37 | | protected CookieException(SerializationInfo serializationInfo, StreamingContext streamingContext) |
| | 0 | 38 | | : base(serializationInfo, streamingContext) |
| | 0 | 39 | | { |
| | 0 | 40 | | } |
| | | 41 | | |
| | | 42 | | [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma |
| | | 43 | | void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext) |
| | 0 | 44 | | { |
| | 0 | 45 | | base.GetObjectData(serializationInfo, streamingContext); |
| | 0 | 46 | | } |
| | | 47 | | |
| | | 48 | | [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma |
| | | 49 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| | | 50 | | public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext) |
| | 0 | 51 | | { |
| | 0 | 52 | | base.GetObjectData(serializationInfo, streamingContext); |
| | 0 | 53 | | } |
| | | 54 | | } |
| | | 55 | | } |
| | | 56 | | |