Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users
Custom error handling
 

Index | Next | Previous | View Flat


kakimoto at tpg

Jul 3, 2009, 12:33 AM


Views: 658
Permalink
Custom error handling

hi ,guys,

referring to
http://search.cpan.org/~hkclark/Catalyst-Manual-5.8000/lib/Catalyst/Manual/Cookbook.pod#Delivering_a_Custom_Error_Page,
i can't seem to see the error page when
I have my Root.pm's sub end set up this way.



sub end : ActionClass('RenderView') {
my ($self, $c) = @_;
$c->log->debug(" Calling END in Root ");

if ( scalar @{ $c->error } ) {
$c->stash->{errors} = $c->error;
$c->stash->{template} = 'menu.tt';
$c->error(0);
}
else
{
$c->log->debug(" nothign done ");
}
}


I can see that a $c->error () is being called in one of my controllers
and the Room->end has been called (thanks to my debugging messages
above) BUT the $c->error doesn't seem to be detected in the Room->end
that I have. Instead, i see "nothign done" being printed out.


Any ideas , fellas?

thank you:)


K. akimoto

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Subject User Time
Custom error handling kakimoto at tpg Jul 3, 2009, 12:33 AM
    Re: Custom error handling bobtfish at bobtfish Jul 3, 2009, 1:15 AM
        Re: Custom error handling kakimoto at tpg Jul 4, 2009, 9:32 PM
            Re: Custom error handling bobtfish at bobtfish Jul 5, 2009, 7:22 AM
                Re: Custom error handling kakimoto at tpg Jul 5, 2009, 6:56 PM
                    Re: Custom error handling bobtfish at bobtfish Jul 6, 2009, 1:22 AM
                        Re: Custom error handling kakimoto at tpg Jul 6, 2009, 2:22 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.