I was thinking of that. I would like some like the following.

<cffunction .... returntype="numeric" throwonerror="true" errormethod="throwError">
....
</cffunction>


<cffunction name="throwError">
<cfargument name="message" ...>
<cfargument name="type" ....>
....
</cffunction>

The function that implements the throwError method would pass a cfc error struct to the throwerror method automatically.

Stephen Milligan wrote:

Sounds like we could use a 'throwOnError' attribute for either the
cffunction or cfargument tag, maybe both.

Something that works the same as the cfhttp attribute. Then you could have
the wsdl specify the required parameter type and do the checking yourself in
a webservice situation.

Does anyone else think this would be a good idea?
----------------------------------------------------------
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