< Summary

Information
Class: Ice.Exception
Assembly: Ice
File(s): /_/csharp/src/Ice/Exception.cs
Tag: 91_21789722663
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 29
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 1
Total methods: 1
Method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/_/csharp/src/Ice/Exception.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3#nullable enable
 4
 5namespace Ice;
 6
 7/// <summary>
 8/// Base class for all Ice exceptions.
 9/// It has only two derived classes: <see cref="LocalException" /> and <see cref="UserException" />.
 10/// </summary>
 11public abstract class Exception : System.Exception
 12{
 13    /// <summary>
 14    /// Returns the type ID of this exception. This corresponds to the Slice type ID for Slice-defined exceptions,
 15    /// and to a fully scoped name for other exceptions.
 16    /// </summary>
 17    /// <returns>The type ID of this exception.</returns>
 18    public abstract string ice_id();
 19
 20    /// <summary>
 21    /// Initializes a new instance of the <see cref="Exception" /> class.
 22    /// </summary>
 23    /// <param name="message">The exception message.</param>
 24    /// <param name="innerException">The inner exception.</param>
 25    protected Exception(string? message, System.Exception? innerException = null)
 126        : base(message, innerException)
 27    {
 128    }
 29}

Methods/Properties

.ctor(string, System.Exception)