Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / Failure and finally

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Failure and finally
#13592
Posted by: Michael S 2012-04-28 15:57:46
I'm not getting the results I think I should expect from the following 2 simple scripts. First, the starting script

/* */
DO
	rc = test2()
	CATCH FAILURE
		SAY 'We caught a failure'
END	

and now test2

/* */
SAY "Raising a failure"
RAISE FAILURE 2 DESCRIPTION ""
RETURN 0
FINALLY
	SAY "We ran through the finally"
The reason I'm including these is that I have a "real" script that raises a failure, but it never seems to run through the finally code.

Am I doing something wrong or misunderstanding what should be happening
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Thu 2017-6-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0