Click or drag to resize
IEmailProcessingOnException Method
On any exception when downloading or processing the email or attachment this is called. Use this to perform any custom recording of errors if needed.

This function may be invoked from multiple threads simultaneously for different emails for parallel processing.

Example below shows how to just print the Exception message out to the Console.

public void OnException(string account, string uniqueID, MailMessage message, EmailProcessingException e);
{
    Console.WriteLine(e.Message);
}

Namespace: MailAttachmentDownloaderPluginAPI
Assembly: MailAttachmentDownloaderPluginAPI (in MailAttachmentDownloaderPluginAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
void OnException(
	string account,
	string uniqueID,
	MailMessage message,
	EmailProcessingException e
)

Parameters

account
Type: SystemString
The email account that is being used to download this attachment.
uniqueID
Type: SystemString
The uniqueID for the email.
message
Type: System.Net.MailMailMessage
The email message.
e
Type: MailAttachmentDownloaderPluginAPIEmailProcessingException
The email processing exception.
See Also