prehandler exception does not get picked up

Hi all,

I have been trying to use the prehandler exception feature but it does not seem to work.

My handler code looks like this

this.prehandler_exception = "keepalive";

public void function preHandler (required Event)
     {
         if( not getPlugin("sessionStorage").exists("webuser") )
         {
              relocate(event.buildLink('main.login'));
         }
     }

     public void function keepalive(required Event)
     {
         var rc = Event.getCollection();
         event.renderData(type="plain",data="#now()#");
     }

Any ideas ?

I believe the syntax should be like this.

this.PREHANDLER_EXCEPT = "keepalive";

Hope that helps,
Curt Gratz
Computer Know How

The documentation here http://wiki.coldbox.org/wiki/EventHandlers.cfm says it should be "prehandler_exception" but I will try with "prehandler_except" and report how it goes.

Thanks.

Thanks!!

Typo on the docs, updated it and we should start on updating ALL docs for 3.0 in a few weeks.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Great, that works! Thanks.