[Csmail-patches] CVS: csmail/src/CSMail SendFailedException.cs,NONE,1.1 ChangeLog,1.41,1.42 Messagin
Status: Pre-Alpha
Brought to you by:
mastergaurav
From: Gaurav V. <mas...@us...> - 2002-09-16 11:22:50
|
Update of /cvsroot/csmail/csmail/src/CSMail In directory usw-pr-cvs1:/tmp/cvs-serv17278 Modified Files: ChangeLog MessagingException.cs Added Files: SendFailedException.cs Log Message: 2002-09-16 * MessagingException.cs : "MailTODO" for Message { get; } * SendFailedException.cs : Added new class / exception. --- NEW FILE --- /** * Namespace: CSMail * Class: SendFailedException * * Author: Gaurav Vaish * Maintainer: mastergaurav AT users DOT sf DOT net * * (C) Gaurav Vaish (2002) */ using System; namespace CSMail { /// <summary> /// Exception to hold details of when messages are not sent. /// </summary> /// <remarks> /// This exception is ought to be used by <see cref="Transport"/> /// <see cref="Service"/> providers. /// </remarks> public class SendFailedException : MessagingException { /// <summary> /// List of valid addresses to which the message was delivered. /// </summary> protected IAddressList validSent; /// <summary> /// List of valid addresses to which the message was not delivered. /// </summary> protected IAddressList validUnsent; /// <summary> /// List of invalid addresses. /// </summary> protected IAddressList invalid; /// <summary> /// Creates a default instance of the object. /// </summary> public SendFailedException(): base() { } /// <summary> /// Creates an instance with error message. /// </summary> /// <param name="message">The error message</param> public SendFailedException(string message): base(message) { } /// <summary> /// Creates an instance with error message and next chained message. /// </summary> /// <param name="message">The error message</param> /// <param name="next">The next message in the chain.</param> public SendFailedException(string message, Exception next): base(message, next) { } /// <summary> /// Creates an instance with given error message, /// next chained exception and lists of addresses. /// </summary> /// <param name="message">The error message</param> /// <param name="next">The next message in the chain.</param> /// <param name="validSent">List of valid addresses to which /// the message was delivered.</param> /// <param name="validUnsent">List of valid addresses to which /// the message was not delivered.</param> /// <param name="invalid">List of invalid addresses.</param> public SendFailedException(string message, Exception next, IAddressList validSent, IAddressList validUnsent, IAddressList invalid) : base(message, next) { this.validSent = validSent; this.validUnsent = validUnsent; this.invalid = invalid; } /// <summary> /// Returns the list of valid addresses to which /// the message was delivered. /// </summary> public IAddressList ValidSent { get { return validSent; } } /// <summary> /// Returns the list of valid addresses to which /// the message was not delivered. /// </summary> public IAddressList ValidUnsent { get { return validUnsent; } } /// <summary> /// Returns the list of invalid addresses. /// </summary> public IAddressList Invalid { get { return invalid; } } } } Index: ChangeLog =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/ChangeLog,v retrieving revision 1.41 retrieving revision 1.42 diff -u -r1.41 -r1.42 --- ChangeLog 13 Sep 2002 06:10:59 -0000 1.41 +++ ChangeLog 16 Sep 2002 11:22:47 -0000 1.42 @@ -1,4 +1,9 @@ +2002-09-16 Gaurav Vaish <mastergaurav AT users DOT sf DOT net> + + * MessagingException.cs : "MailTODO" for Message { get; } + * SendFailedException.cs : Added new class / exception. + 2002-09-13 Gaurav Vaish <mastergaurav AT users DOT sf DOT net> * MimeBodyPart.cs : ContentType - Implemented Index: MessagingException.cs =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/MessagingException.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- MessagingException.cs 6 Sep 2002 11:52:29 -0000 1.3 +++ MessagingException.cs 16 Sep 2002 11:22:47 -0000 1.4 @@ -37,6 +37,7 @@ } } + [MailTODO] public override string Message { get |