CFERROR templates work for compile errors too. I tried it before
posting (of course), on CF 6.1, and this sent me an error via my
cferror-specified exception handling template:
<cfcomponent>
<cffunction name="myFunction" access="public" returntype="string">
<cfargument name="myArgument" type="string" required="yes">
<cfset myResult="foo">
<cfreturn myResult
</cffunction>
</cfcomponent>
Notice the missing > after <cfreturn myResult, which results in a compile error.
Here's the error my cferror template emailed me on trying to cfobject
the cfc (i.e. not even calling a method):
Invalid CFML construct found on line 6 at column 9. ColdFusion was
looking at the following text:<p></</p><p>The CFML compiler was
processing:<ul><li>a cfreturn tag beginning on line 5, column 18.<li>a
cfreturn tag beginning on line 5, column 18.</ul> <br>The error
occurred on line 3.
On 3/31/06, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> That might be true if the error handler was specified in the CF
> Administrator. If the error handler is specified with cferror then I
> don't believe that's possible.
--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236777
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54