Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
CF-Server
Cold Fusion Server Tech
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Cold Fusion :
product's home
product's list home
 
  Archived TallyList / CF-Server: 
Subject: RE: CFTHROW question
Dave Watts (48p/+0r)     Posted: Monday 29 Jan 2001
This post: 34 views, +0 rating

> Does anybody know if you can cfthrow a user defined exception > inside of a custom tag and cfcatch it in the calling template?

Yes, you can certainly do this. To me, this is one of the best things about exception handling - its use between components as an "error messaging system".

You can build relatively complex exception handlers within custom tags, which might throw an internal exception, catch that exception, and rethrow it using CFTHROW to an external exception handler within the calling page. You also have the CFRETHROW tag, which is designed to do this explicitly.

Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm ------------------------------------------------------------------------------ To unsubscribe, send a message to cf-server-request@houseoffusion.com with 'unsubscribe' in the body or visit the list page at www.houseoffusion.com


Similar Subject Line Posts (+/- two weeks of this post)
RE: CFTHROW question  29 Jan 2001 (this post)   (34 v/ +0 r)
Re: CFTHROW question  29 Jan 2001   (48 v/ +0 r)
CFTHROW question  29 Jan 2001   (27 v/ +0 r)
 

Send a reply to the CF-Server list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000