<cfset myException = CreateObject(“component” “cfc.CustomValidationException”).init(“An error occurred while validating the data.”)>

<cfset myException.addInvalidData(someBadInfo)>

<cfset myException.addInvalidData(moreBadInfo)>

<cfset myException.addInvalidData(someWorseInfo)>

 

 

<cfthrow exception=”myException”>

 

While it’s not at the top of my list, I too think it would be a nice feature.  I hate having to encode data in strings and lists.

 

Roland

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Kenney
Sent: Sunday, May 15, 2005 11:06 PM
To: [email protected]
Subject: Re: [CFCDev] CFC wish-list

 

I like this one. I don't know how it would work, but very interesting.

On 5/15/05, Jon Gunnip <[EMAIL PROTECTED] > wrote:

I would like to see support for throwing CFC's as exceptions.  Right
now, AFAIK, you have to throw a java object to use <cfthrow
object="myException" >.

This would allow one to pass complex data types along with the
exception (e.g. an array of email addresses that were invalid).

Jon




--
Paul Kenney
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.pjk.us ----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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

Reply via email to