using System;
using System.Runtime.Serialization;
namespace System.Net.Mail
{
/// Represents the exception that is thrown when the is not able to complete a or operation to a particular recipient.
// Token: 0x0200014B RID: 331
[Serializable]
public class SmtpFailedRecipientException : SmtpException, ISerializable
{
/// Initializes an empty instance of the class.
// Token: 0x06000B5A RID: 2906 RVA: 0x00022E8C File Offset: 0x0002108C
public SmtpFailedRecipientException()
{
}
/// Initializes a new instance of the class with the specified error message.
/// A that contains the error message.
// Token: 0x06000B5B RID: 2907 RVA: 0x00022E94 File Offset: 0x00021094
public SmtpFailedRecipientException(string message)
: base(message)
{
}
/// Initializes a new instance of the class from the specified instances of the and classes.
/// A that contains the information required to serialize the new .
/// A that contains the source and destination of the serialized stream that is associated with the new instance.
// Token: 0x06000B5C RID: 2908 RVA: 0x00022EA0 File Offset: 0x000210A0
protected SmtpFailedRecipientException(SerializationInfo serializationInfo, StreamingContext streamingContext)
: base(serializationInfo, streamingContext)
{
if (serializationInfo == null)
{
throw new ArgumentNullException("serializationInfo");
}
this.failedRecipient = serializationInfo.GetString("failedRecipient");
}
/// Initializes a new instance of the class with the specified status code and e-mail address.
/// An value.
/// A that contains the e-mail address.
// Token: 0x06000B5D RID: 2909 RVA: 0x00022ED8 File Offset: 0x000210D8
public SmtpFailedRecipientException(SmtpStatusCode statusCode, string failedRecipient)
: base(statusCode)
{
this.failedRecipient = failedRecipient;
}
/// Initializes a new instance of the class with the specified error message and inner exception.
/// A that describes the error that occurred.
/// The exception that is the cause of the current exception.
// Token: 0x06000B5E RID: 2910 RVA: 0x00022EE8 File Offset: 0x000210E8
public SmtpFailedRecipientException(string message, Exception innerException)
: base(message, innerException)
{
}
/// Initializes a new instance of the class with the specified error message, e-mail address, and inner exception.
/// A that describes the error that occurred.
/// A that contains the e-mail address.
/// The exception that is the cause of the current exception.
// Token: 0x06000B5F RID: 2911 RVA: 0x00022EF4 File Offset: 0x000210F4
public SmtpFailedRecipientException(string message, string failedRecipient, Exception innerException)
: base(message, innerException)
{
this.failedRecipient = failedRecipient;
}
/// Initializes a new instance of the class with the specified status code, e-mail address, and server response.
/// An value.
/// A that contains the e-mail address.
/// A that contains the server response.
// Token: 0x06000B60 RID: 2912 RVA: 0x00022F08 File Offset: 0x00021108
public SmtpFailedRecipientException(SmtpStatusCode statusCode, string failedRecipient, string serverResponse)
: base(statusCode, serverResponse)
{
this.failedRecipient = failedRecipient;
}
/// Populates a instance with the data that is needed to serialize the .
/// A instance, which holds the serialized data for the .
/// A instance that contains the destination of the serialized stream that is associated with the new .
// Token: 0x06000B61 RID: 2913 RVA: 0x00022F1C File Offset: 0x0002111C
void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
this.GetObjectData(serializationInfo, streamingContext);
}
/// Indicates the e-mail address with delivery difficulties.
/// A that contains the e-mail address.
// Token: 0x170002D9 RID: 729
// (get) Token: 0x06000B62 RID: 2914 RVA: 0x00022F28 File Offset: 0x00021128
public string FailedRecipient
{
get
{
return this.failedRecipient;
}
}
/// Populates a instance with the data that is needed to serialize the .
/// The to populate with data.
/// A that specifies the destination for this serialization.
// Token: 0x06000B63 RID: 2915 RVA: 0x00022F30 File Offset: 0x00021130
public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
if (serializationInfo == null)
{
throw new ArgumentNullException("serializationInfo");
}
base.GetObjectData(serializationInfo, streamingContext);
serializationInfo.AddValue("failedRecipient", this.failedRecipient);
}
// Token: 0x04000B58 RID: 2904
private string failedRecipient;
}
}