> that the role passed to the function actually exists and if
> not return an appropriate error, but how do I do this. The
> place I get lost at is the function returning the data has
> been designed to expect to return a query {<cffunction
> name="displayBasicData" access="public" output="false"
> returntype="query...>}. So if I place code there to capture
> and return an error how would I do this with the function
> expecting to return a query? obviously I could not declare
> the return type and/or allow output in the function but
> neither of these seem very proper to me!
You might use CFTHROW to pass CFC-specific errors to the caller of the CFC.
It would then be the caller's responsibility to deal with the error
appropriately, perhaps using an exception handler.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

