< Summary

Information
Class: MyNet.Mail.MailKit.Exceptions.UndefinedServerException
Assembly: MyNet.Mail.MailKit
File(s): https://raw.githubusercontent.com/sandre58/MyNet/5aaaab311aa14541478b9e402357d98b657a23e4/src/MyNet.Mail.MailKit/Exceptions/UndefinedServerException.cs
Tag: 342_31701152804
Line coverage
66%
Covered lines: 2
Uncovered lines: 1
Coverable lines: 3
Total lines: 37
Line coverage: 66.6%
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 Crap Score Cyclomatic complexity Line coverage
.ctor()100%11100%
.ctor(...)100%11100%
.ctor(...)100%210%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/5aaaab311aa14541478b9e402357d98b657a23e4/src/MyNet.Mail.MailKit/Exceptions/UndefinedServerException.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="UndefinedServerException.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System;
 8
 9namespace MyNet.Mail.MailKit.Exceptions;
 10
 11/// <summary>
 12/// Exception thrown when no server has been defined for a mail message.
 13/// </summary>
 14public class UndefinedServerException : Exception
 15{
 16    /// <summary>
 17    /// Initializes a new instance of the <see cref="UndefinedServerException"/> class with a default error message.
 18    /// </summary>
 19    public UndefinedServerException()
 620        : this("No server has been defined.") { }
 21
 22    /// <summary>
 23    /// Initializes a new instance of the <see cref="UndefinedServerException"/> class with a specified error message.
 24    /// </summary>
 25    /// <param name="message">The error message that explains the reason for the exception.</param>
 26    public UndefinedServerException(string? message)
 627        : base(message) { }
 28
 29    /// <summary>
 30    /// Initializes a new instance of the <see cref="UndefinedServerException"/> class with a specified error message an
 31    /// </summary>
 32    /// <param name="message">The error message that explains the reason for the exception.</param>
 33    /// <param name="innerException">The exception that is the cause of the current exception.</param>
 34    public UndefinedServerException(string? message, Exception? innerException)
 035        : base(message, innerException) { }
 36}
 37