File: Exceptional.pm

package info (click to toggle)
libmojolicious-perl 8.12%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,720 kB
  • sloc: perl: 12,099; makefile: 14
file content (11 lines) | stat: -rw-r--r-- 225 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
package MojoliciousTest::Exceptional;
use Mojo::Base 'Mojolicious::Controller';

sub this_one_dies { die "doh!\n" }

sub this_one_might_die {
  die "double doh!\n" unless shift->req->headers->header('X-DoNotDie');
  1;
}

1;