Please read me previous posts if you haven't already. :-)
The following function returntypes is what I would have been providing as an automatic webservice.
returntype="query" returntype="string" returntype="struct" returntype="array" returntype="numeric"
If it's a query it has two columns. (errorCode, errorMessage)
If it's a string it returns an xml string with an errorCode and errorMessage branches.
If it's a struct it returns an errorCode and errorMessage key.
If it's an array it returns an array position 1 for the errorcode and position 2 for the errormessage.
If it's numeric is returns the errorcode.
Jeffry Houser wrote:
----------------------------------------------------------
I guess it would depend on the return type of the function and what error information you want to give back.
For example, if it is a Boolean return value you can easily do "<cfreturn false>" in a cfcatch statement. Don't many of ColdFusion's Array / Structure functions handle errors in a similar manner?
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]
