Sometimes receiving an error is an indication, that something isn't in the stat you expect it to be. So we have introduced the new tag CFRETRY. It comes with a set of jump statements which will be introduced in Railo 4.1 and which we will be blogging about soon. So let's start with CFRETRY.
CFRETRY will do exactly what the name states. It will try to reexecute the code framed by the CFTRY tag it is used in. So consider the following code:
<cffile action="copy" source="C:\test.xml" destination="d:\susi\test.xml">
<cfif not directoryExists("d:\susi")>
<cfdirectory action="create" directory="d:\susi">
Next to the tag CFRETRY there also exists the statement retry which you can use inside CFSCRIPT as well. The use cases for tag CFRETRY are numerous. It is another tool you can use for structuring your application and improve the code quality. Comments are as usual warmly welcome.