< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Runtime.CallbackException
Assembly: CoreWCF.NetTcp
File(s): /home/runner/work/CoreWCF/CoreWCF/src/Common/src/CoreWCF/Runtime/CallbackException.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 26
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)

/home/runner/work/CoreWCF/CoreWCF/src/Common/src/CoreWCF/Runtime/CallbackException.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;
 5
 6namespace CoreWCF.Runtime
 7{
 8    //[Serializable]
 9    internal class CallbackException : FatalException
 10    {
 011        public CallbackException()
 12        {
 013        }
 14
 015        public CallbackException(string message, Exception innerException) : base(message, innerException)
 16        {
 17            // This can't throw something like ArgumentException because that would be worse than
 18            // throwing the callback exception that was requested.
 19            Fx.Assert(innerException != null, "CallbackException requires an inner exception.");
 20            Fx.Assert(!Fx.IsFatal(innerException), "CallbackException can't be used to wrap fatal exceptions.");
 021        }
 22        //protected CallbackException(SerializationInfo info, StreamingContext context) : base(info, context)
 23        //{
 24        //}
 25    }
 26}