RosettaCodeData/Task/Exceptions/Stata/exceptions.stata

11 lines
183 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
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
}
}