Tone.EnableStaticExceptions Property

Determines whether or not exceptions can be raised by static Tone methods. This property applies strictly to static Tone methods, not to instances of Tone (see EnableExceptions).

Syntax

[C#]
public static bool EnableStaticExceptions

Property Values

true
Exceptions are raised when static Tone methods encounter a fault.

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

Notes

When this property is disabled, the most recent error message string can still be retrieved by calling the helper method ResultMessage or its static counterpart, Tone.ResultMessage. Otherwise, you can access the message string via the Exception.Message property. Helper methods such as ResultMessage do not explicitly raise exceptions.

More Information

Tone Class