> > We are trying to utilise one of the new CF4.5 features where
> > you can catch exceptions using cferror instead of using cftry
> > and cfcatch.
> >
> > However, our host is on 4.5 and it is not working - anyone
> > else had this experience of know of a bug/solution?
...
> what is the content of the templates that you are calling, in
> the event of cferror?
>
> Only minimal cfcode is allowed, basically <cfoutput>Whichever
> error variables your exception creates</cfoutput>. You can also
> do whatever standard html you want. (I suspect this is so you
> won't create an exception and start an infinite loop)
There are a couple of errors here, which should be pointed out.
When you use exception handling, you can specify whatever CFML code you want
within the CFCATCH block(s) of your exception handler. An exception in CF
isn't exactly the same thing as an error - think of it as a potential error,
or an "error-in-waiting".
If an exception isn't handled, it will become an error. CF will stop the
processing of the request, and log the error.
If you use the CFERROR tag with the TYPE attribute set to "REQUEST" to
redirect the error to a specific page, that page may only reference the
error variables, and can't have any CFML tags or functions within it - not
even the CFOUTPUT mentioned above.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]