Gets and sets a value which specifies if method calls should throw exceptions when an error occurs.
Returns true if method calls will generate exceptions when an error occurs; otherwise returns false. The default value is false.
Error handling for when calling class methods can be done in either of two different styles, according to the value of this property.
If the ThrowError property is set to false, the application should check the return value of any method that is used, and report errors based upon the documented value of the return code. It is the responsibility of the application to interpret the error code, if it is desired to explain the error in addition to reporting it. This is the default behavior.
If the ThrowError property is set to true, then exceptions will be generated whenever a method call fails. The program must be written to catch these exceptions and take the appropriate action when an error occurs. Failure to handle an exception will cause the program to terminate abnormally.
Note that if an error occurs while a property is being read or modified, an exception will be raised regardless of the value of the ThrowError property.