File: LoaderException2.pm

package info (click to toggle)
libmojolicious-perl 2.98%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,968 kB
  • sloc: perl: 10,178; sh: 48; makefile: 8
file content (26 lines) | stat: -rw-r--r-- 391 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package LoaderException2;
use Mojo::Base -strict;

LoaderException2_2::throw_error();

1;

package LoaderException2_2;

use Carp 'croak';

sub throw_error {
  eval { LoaderException2_3::throw_error() };
  croak $@ if $@;
}

# "Shoplifting is a victimless crime. Like punching someone in the dark."
package LoaderException2_3;

use Carp 'croak';

sub throw_error {
  croak "Exception";
}

1;