% my $s = $self->stash; % my $e = $self->stash('exception'); % delete $s->{inner_template}; % delete $s->{exception}; % my $dump = dumper $s; % $s->{exception} = $e; Exception <% if ($self->app->mode eq 'development') { %>
This page was generated from the template "templates/exception.html.ep".
<%= $e->message %>
<% for my $line (@{$e->lines_before}) { %>
<%= $line->[0] %>: <%= $line->[1] %>
<% } %> <% if ($e->line->[0]) { %>
<%= $e->line->[0] %>: <%= $e->line->[1] %>
<% } %> <% for my $line (@{$e->lines_after}) { %>
<%= $line->[0] %>: <%= $line->[1] %>
<% } %>
<%= $dump %>
<% } else { %>
Page temporarily unavailable, please come back later.
<% } %>