< Summary

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

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Text.Json/src/System/Text/Json/Reader/JsonReaderException.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.Runtime.Serialization;
 5
 6namespace System.Text.Json
 7{
 8    // This class exists because the serializer needs to catch reader-originated exceptions in order to throw JsonExcept
 9    [Serializable]
 10    internal sealed class JsonReaderException : JsonException
 11    {
 012        public JsonReaderException(string message, long lineNumber, long bytePositionInLine) : base(message, path: null,
 013        {
 014        }
 15
 16#if NET
 17        [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma
 18#endif
 019        private JsonReaderException(SerializationInfo info, StreamingContext context) : base(info, context)
 020        {
 021        }
 22    }
 23}
 24