Control Structures
These are examples of control structures. You may also be interested in:

 Conditional structures
 Exceptions
 Flow-control structures
 Loops

This task is to give an example of an exception handling routine
and to "throw" a new exception.



Related task

   Exceptions Through Nested Calls


capture confirm file titanium.dta
if _rc {
	if _rc==601 {
		display "the file does not exist"
	}
	else {
		* all other cases
		display "there was an error with return code " _rc
	}
}