< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 15
Coverable lines: 15
Total lines: 41
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%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Private.Uri/src/System/UriFormatException.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
 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    {
 016        public UriFormatException() : base()
 017        {
 018        }
 19
 020        public UriFormatException(string? textString) : base(textString)
 021        {
 022        }
 23
 024        public UriFormatException(string? textString, Exception? e) : base(textString, e)
 025        {
 026        }
 27
 28        [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma
 29        [EditorBrowsable(EditorBrowsableState.Never)]
 030        protected UriFormatException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(seri
 031        {
 032        }
 33
 34        [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma
 35        void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
 036        {
 037            base.GetObjectData(serializationInfo, streamingContext);
 038        }
 39    }
 40}
 41