Interview Questions

Functions - Error handling

Coding standards for Rational Robot

(Continued from previous question...)

Functions - Error handling

All functions need to provide an error catching cover such as

"On Error goto Err_" + [FunctionName]

and an appropriate label to deal with the error. Although the "goto" statement should be abandoned from any programming languages, this is the one and only place where it is allowed to use it. In order to make it easier for all to follow the below shown function body, a tool called "BodyWizard" is provided that does the skeleton for you automatically.

(Continued on next question...)

Other Interview Questions