MailBee.NET Objects 7.2

Processor.ThrowExceptions Property

Gets or sets whether the object will throw exceptions on errors.

public bool ThrowExceptions {get; set;}

Property Value

A bool value indicating whether the object will throw exceptions on errors. The default value is true.

Remarks

When exceptions are disabled and an error occurs, the object methods return false (or a null reference (Nothing in Visual Basic) if the method normally returns an object). You can use LastResult members to get more information about the error.

Note    Even if this property is set to false, the exceptions which occur due to errors in MailBee usage will still be thrown.

Typical example of such errors is passing invalid arguments to methods. Such exceptions indicate programming errors in the application being developed, and thus cannot be supressed.

See Also

Processor Class | MailBee.Html Namespace