Correct. The assumption is that if FW/1 doesn't handle a request, FW/1
should not be responsible for error handling.
> Any suggestions for catching these kinds of errors?
How does the legacy app handle errors today?
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
Sean
--
FW/1 on RIAForge: http://fw1.riaforge.org/
FW/1 on github: http://github.com/seancorfield/fw1
FW/1 on Google Groups: http://groups.google.com/group/framework-one
Hmm, can you open a ticket on github and I'll have a think about how
best to handle this (probably provide a way to swap in a "legacy"
onError() handler instead of deleting it for unhandled paths).Sean
I have a similar set up, Stu, and this is what I did:void function onRequestStart(string pageRequested){//Overriding the FW/1 onRequestStart and calling it only if this is a request for FW/1if ( arguments.pageRequested == "/index.cfm" ) {super.onRequestStart( targetPath=arguments.pageRequested );} else {//This request is not using FW/1 and we should delete onRequest so it doesn't run.structDelete(this, 'onRequest');structDelete(variables, 'onRequest');}
This leaves the onError function in which has all our custom error handling stuff.
On Thu, Mar 22, 2012 at 3:38 PM, Sean Corfield wrote:
Hmm, can you open a ticket on github and I'll have a think about how
best to handle this (probably provide a way to swap in a "legacy"
onError() handler instead of deleting it for unhandled paths).
Sean
Sean