< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 18
Coverable lines: 18
Total lines: 56
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor()100%110%
.ctor(...)100%110%
.ctor(...)100%110%
.ctor(...)100%110%
System.Runtime.Serialization.ISerializable.GetObjectData(...)100%110%
GetObjectData(...)100%110%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Net.Primitives/src/System/Net/CookieException.cs

#LineLine coverage
 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
 4using System.ComponentModel;
 5using System.Runtime.Serialization;
 6
 7namespace 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    {
 013        public CookieException() : base()
 014        {
 015        }
 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>
 021        public CookieException(string? message) : base(message)
 022        {
 023        }
 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>
 031        public CookieException(string? message, Exception? innerException) : base(message, innerException)
 032        {
 033        }
 34
 35        [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma
 36        [EditorBrowsable(EditorBrowsableState.Never)]
 37        protected CookieException(SerializationInfo serializationInfo, StreamingContext streamingContext)
 038            : base(serializationInfo, streamingContext)
 039        {
 040        }
 41
 42        [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma
 43        void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
 044        {
 045            base.GetObjectData(serializationInfo, streamingContext);
 046        }
 47
 48        [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma
 49        [EditorBrowsable(EditorBrowsableState.Never)]
 50        public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
 051        {
 052            base.GetObjectData(serializationInfo, streamingContext);
 053        }
 54    }
 55}
 56