I have a try/catch block in one of my CFCs. It cannot be var'ed into the "private" scope....

If I want to return the cfcatch "global" scope back from my CFC in a structure using duplicate(cfcatch).

EX.

<cfcatch type="database">
<!--- Open script block --->
<cfscript>
// Duplicate entry - Legacy(X/Open) and SQL Standard for cross DB compat. --->
if (cfcatch.SQLState EQ "S1009" XOR cfcatch.SQLState EQ 23000) {
// Erase Access_ID to "null"
Access_ID = "";
return duplicate(cfcatch);
} // END IF
// All other DB errors
else {
// DO OTHER ERROR HANDLING etc.
} // END ELSE
</cfscript>
</cfcatch>


If this thread safe?

a big TIA,
.peter
.maepub
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to