• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MorganKryze / ConsoleAppVisuals / 8158191062

05 Mar 2024 02:47PM UTC coverage: 86.165% (+0.9%) from 85.231%
8158191062

push

github

MorganKryze
📖 (readme) update roadmap

931 of 1144 branches covered (81.38%)

Branch coverage included in aggregate %.

1803 of 2029 relevant lines covered (88.86%)

412.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/ConsoleAppVisuals/errors/EmptyFileException.cs
1
/*
2
    GNU GPL License 2024 MorganKryze(Yann Vidamment)
3
    For full license information, please visit: https://github.com/MorganKryze/ConsoleAppVisuals/blob/main/LICENSE
4
*/
5
namespace ConsoleAppVisuals.Errors;
6

7
/// <summary>
8
/// Exception thrown when no data is found in a file.
9
/// </summary>
10
/// <remarks>
11
/// For more information, refer to the following resources:
12
/// <list type="bullet">
13
/// <item><description><a href="https://morgankryze.github.io/ConsoleAppVisuals/">Documentation</a></description></item>
14
/// <item><description><a href="https://github.com/MorganKryze/ConsoleAppVisuals/blob/main/example/">Example Project</a></description></item>
15
/// </list>
16
/// </remarks>
17
[Serializable]
18
[DebuggerDisplay($"{{{nameof(GetDebuggerDisplay)}(),nq}}")]
19
public class EmptyFileException : Exception, ISerializable
20
{
21
    /// <summary>
22
    /// Default constructor.
23
    /// </summary>
24
    public EmptyFileException() { }
4✔
25

26
    /// <summary>
27
    /// Constructor with message.
28
    /// </summary>
29
    /// <param name="message">Message to be displayed.</param>
30
    public EmptyFileException(string message)
31
        : base(message) { }
8✔
32

33
    /// <summary>
34
    /// Constructor with message and inner exception.
35
    /// </summary>
36
    /// <param name="message">Message to be displayed.</param>
37
    /// <param name="inner">Inner exception.</param>
38
    public EmptyFileException(string message, Exception inner)
39
        : base(message, inner) { }
4✔
40

41
    private string GetDebuggerDisplay()
42
    {
43
        return ToString();
2✔
44
    }
45
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc