Summary

Class:ICSharpCode.SharpZipLib.SharpZipBaseException
Assembly:ICSharpCode.SharpZipLib
File(s):C:\Users\Neil\Documents\Visual Studio 2015\Projects\icsharpcode\SZL_master\ICSharpCode.SharpZipLib\SharpZipBaseException.cs
Covered lines:2
Uncovered lines:6
Coverable lines:8
Total lines:52
Line coverage:25%

Metrics

MethodCyclomatic ComplexitySequence CoverageBranch Coverage
.ctor(...)100
.ctor()100
.ctor(...)1100100
.ctor(...)100

File(s)

C:\Users\Neil\Documents\Visual Studio 2015\Projects\icsharpcode\SZL_master\ICSharpCode.SharpZipLib\SharpZipBaseException.cs

#LineLine coverage
 1using System;
 2using System.Runtime.Serialization;
 3
 4namespace ICSharpCode.SharpZipLib
 5{
 6  /// <summary>
 7  /// SharpZipBaseException is the base exception class for SharpZipLib.
 8  /// All library exceptions are derived from this.
 9  /// </summary>
 10  /// <remarks>NOTE: Not all exceptions thrown will be derived from this class.
 11  /// A variety of other exceptions are possible for example <see cref="ArgumentNullException"></see></remarks>
 12  [Serializable]
 13  public class SharpZipBaseException : Exception
 14  {
 15    /// <summary>
 16    /// Deserialization constructor
 17    /// </summary>
 18    /// <param name="info"><see cref="System.Runtime.Serialization.SerializationInfo"/> for this constructor</param>
 19    /// <param name="context"><see cref="StreamingContext"/> for this constructor</param>
 20    protected SharpZipBaseException(SerializationInfo info, StreamingContext context)
 021      : base(info, context)
 22    {
 023    }
 24
 25    /// <summary>
 26    /// Initializes a new instance of the SharpZipBaseException class.
 27    /// </summary>
 028    public SharpZipBaseException()
 29    {
 030    }
 31
 32    /// <summary>
 33    /// Initializes a new instance of the SharpZipBaseException class with a specified error message.
 34    /// </summary>
 35    /// <param name="message">A message describing the exception.</param>
 36    public SharpZipBaseException(string message)
 1537      : base(message)
 38    {
 1539    }
 40
 41    /// <summary>
 42    /// Initializes a new instance of the SharpZipBaseException class with a specified
 43    /// error message and a reference to the inner exception that is the cause of this exception.
 44    /// </summary>
 45    /// <param name="message">A message describing the exception.</param>
 46    /// <param name="innerException">The inner exception</param>
 47    public SharpZipBaseException(string message, Exception innerException)
 048      : base(message, innerException)
 49    {
 050    }
 51  }
 52}