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: MailAttachmentDownloaderPluginAPIAssembly: MailAttachmentDownloaderPluginAPI (in MailAttachmentDownloaderPluginAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax void OnException(
string account,
string uniqueID,
MailMessage message,
EmailProcessingException e
)
Sub OnException (
account As String,
uniqueID As String,
message As MailMessage,
e As EmailProcessingException
)
void OnException(
String^ account,
String^ uniqueID,
MailMessage^ message,
EmailProcessingException^ e
)
abstract OnException :
account : string *
uniqueID : string *
message : MailMessage *
e : EmailProcessingException -> unit
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