< Summary

Information
Line coverage
50%
Covered lines: 3
Uncovered lines: 3
Coverable lines: 6
Total lines: 23
Line coverage: 50%
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%11100%
.ctor(...)100%110%

File(s)

C:\h\w\B31A098C\w\BB5A0A33\e\runtime-utils\Runner\runtime\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    {
 3698812        public JsonReaderException(string message, long lineNumber, long bytePositionInLine) : base(message, path: null,
 3698813        {
 3698814        }
 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}