| | | 1 | | // ----------------------------------------------------------------------- |
| | | 2 | | // <copyright file="EmptySenderAddressesException.cs" company="Stéphane ANDRE"> |
| | | 3 | | // Copyright (c) Stéphane ANDRE. All rights reserved. |
| | | 4 | | // </copyright> |
| | | 5 | | // ----------------------------------------------------------------------- |
| | | 6 | | |
| | | 7 | | using System; |
| | | 8 | | |
| | | 9 | | namespace MyNet.Mail.MailKit.Exceptions; |
| | | 10 | | |
| | | 11 | | /// <summary> |
| | | 12 | | /// Exception thrown when no sender addresses have been defined for a mail message. |
| | | 13 | | /// </summary> |
| | | 14 | | public class EmptySenderAddressesException : Exception |
| | | 15 | | { |
| | | 16 | | /// <summary> |
| | | 17 | | /// Initializes a new instance of the <see cref="EmptySenderAddressesException"/> class with a default error message |
| | | 18 | | /// </summary> |
| | | 19 | | public EmptySenderAddressesException() |
| | 6 | 20 | | : this("No sender addresses has been defined.") { } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Initializes a new instance of the <see cref="EmptySenderAddressesException"/> class with a specified error messa |
| | | 24 | | /// </summary> |
| | | 25 | | /// <param name="message">The error message that explains the reason for the exception.</param> |
| | | 26 | | public EmptySenderAddressesException(string? message) |
| | 6 | 27 | | : base(message) { } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Initializes a new instance of the <see cref="EmptySenderAddressesException"/> class with a specified error messa |
| | | 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 EmptySenderAddressesException(string? message, Exception? innerException) |
| | 0 | 35 | | : base(message, innerException) { } |
| | | 36 | | } |
| | | 37 | | |