PolyTone.EnableExceptions Property

Determines whether or not exceptions can be raised by PolyTone methods.

Syntax

[C#]
public bool EnableExceptions { get; set; }

Property Values

true
Exceptions are raised when a non-helper method encounters a fault.

false
Errors are generated in the form of method return codes, but no exceptions are raised explicitly by PolyTone methods. The system may raise exceptions if conditions warrant.

Notes

When EnableExceptions is disabled, the most recent error message string can still be retrieved by calling LastResultMessage. Otherwise, access the message string via the Exception.Message property.

Helper methods such as LastResultMessage do not explicitly raise exceptions.

More Information

PolyTone Class