Why? What would you expect to happen if you said throwOnError="false"? How would you handle the error and why would that be different from doing the following:
<cfargument name="arg" type="any" required="true" /> <cfif isNumeric(arguments.arg)> ... normal processing ... <cfelse> ... error processing ... </cfif>
Am I not making myself clear? If the argument type is ANY it will not be documented that the argument requires a numeric type!
But if you are calling it as a web service you *can* catch and handle the error:
<cftry> <cfset ws.callMethod("not a number") /> ... continue with processing ... <cfcatch type="any"> ... do something with the error ... </cfcatch> </cftry>
Again respectfully, please _read_ what I'm writing. This call would be on the client side out of our control. It should be type checked before it even gets that far. But it should also allow the remote user to inspect the webservice for the required arguments and their types. That could not happen if the returntype is _any_.
----------------------------------------------------------
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]
