using System;
using System.Runtime.Serialization;
namespace System.Net.Mail
{
/// The exception that is thrown when e-mail is sent using an and cannot be delivered to all recipients.
// Token: 0x0200014C RID: 332
[Serializable]
public class SmtpFailedRecipientsException : SmtpFailedRecipientException, ISerializable
{
/// Initializes an empty instance of the class.
// Token: 0x06000B64 RID: 2916 RVA: 0x00022F68 File Offset: 0x00021168
public SmtpFailedRecipientsException()
{
}
/// Initializes a new instance of the class with the specified .
/// The exception message.
// Token: 0x06000B65 RID: 2917 RVA: 0x00022F70 File Offset: 0x00021170
public SmtpFailedRecipientsException(string message)
: base(message)
{
}
/// Initializes a new instance of the class with the specified and inner .
/// The exception message.
/// The inner exception.
// Token: 0x06000B66 RID: 2918 RVA: 0x00022F7C File Offset: 0x0002117C
public SmtpFailedRecipientsException(string message, Exception innerException)
: base(message, innerException)
{
}
/// Initializes a new instance of the class with the specified and array of type .
/// The exception message.
/// The array of recipients with delivery errors.
// Token: 0x06000B67 RID: 2919 RVA: 0x00022F88 File Offset: 0x00021188
public SmtpFailedRecipientsException(string message, SmtpFailedRecipientException[] innerExceptions)
: base(message)
{
this.innerExceptions = innerExceptions;
}
/// Initializes a new instance of the class from the specified instances of the and classes.
/// A instance that contains the information required to serialize the new instance.
/// A that contains the source of the serialized stream that is associated with the new instance.
// Token: 0x06000B68 RID: 2920 RVA: 0x00022F98 File Offset: 0x00021198
protected SmtpFailedRecipientsException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
if (info == null)
{
throw new ArgumentNullException("info");
}
this.innerExceptions = (SmtpFailedRecipientException[])info.GetValue("innerExceptions", typeof(SmtpFailedRecipientException[]));
}
/// Initializes a new instance of the class from the specified and instances.
/// A that contains the information required to serialize the new .
/// A that contains the source of the serialized stream that is associated with the new .
// Token: 0x06000B69 RID: 2921 RVA: 0x00022FD4 File Offset: 0x000211D4
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
this.GetObjectData(info, context);
}
/// Gets one or more s that indicate the e-mail recipients with SMTP delivery errors.
/// An array of type that lists the recipients with delivery errors.
// Token: 0x170002DA RID: 730
// (get) Token: 0x06000B6A RID: 2922 RVA: 0x00022FE0 File Offset: 0x000211E0
public SmtpFailedRecipientException[] InnerExceptions
{
get
{
return this.innerExceptions;
}
}
/// Populates a instance with the data that is needed to serialize the .
/// The to be used.
/// The to be used.
// Token: 0x06000B6B RID: 2923 RVA: 0x00022FE8 File Offset: 0x000211E8
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
if (info == null)
{
throw new ArgumentNullException("info");
}
base.GetObjectData(info, context);
info.AddValue("innerExceptions", this.innerExceptions);
}
// Token: 0x04000B59 RID: 2905
private SmtpFailedRecipientException[] innerExceptions;
}
}