First - it only works in CFMX - secondly - the syntax is:
try {
....
} catch(ExceptionType name) {
}
Notice the catch is _after_ the try block.
=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire
Email : [EMAIL PROTECTED]
Yahoo IM : cfjedimaster
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: John McCosker [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 10:53 AM
> To: CF-Talk
> Subject: try catch + cfscript
>
>
> hey,
>
> whats the equivalent to CFTRY for CFSCRIPT,
>
> sounds straightforward,
>
> I've implemented it as you would traditionally,
>
> try {
>
> ...do default
> catch {...or not}
> }
>
> but errors, invalid parser construct etc...
>
> checked the docks, nothing
> checked professional cf5.0 nothing,
> checked cfscript from start to finish on HOF nothing,
> checked the archives can't find anything,
>
> I'm puzzled, can you?
>
> respectfully,
>
> j
>
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists