Commit | Line | Data |
---|---|---|
dd4e6fd2 | 1 | package TestApp::Controller::Engine::Response::Errors; |
2 | ||
3 | use strict; | |
c057ae86 | 4 | use base 'Catalyst::Controller'; |
dd4e6fd2 | 5 | |
6 | sub one : Relative { | |
7 | my ( $self, $c ) = @_; | |
8 | my $a = 0; | |
9 | my $b = 0; | |
c462faf0 | 10 | my $t = $a / $b; |
dd4e6fd2 | 11 | } |
12 | ||
13 | sub two : Relative { | |
14 | my ( $self, $c ) = @_; | |
15 | $c->forward('/non/existing/path'); | |
16 | } | |
17 | ||
18 | sub three : Relative { | |
19 | my ( $self, $c ) = @_; | |
20 | die("I'm going to die!\n"); | |
21 | } | |
22 | ||
23 | 1; |