File: LoaderException2.pm

package info (click to toggle)
libmojolicious-perl 0.999926-1%2Bsqueeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,672 kB
  • ctags: 949
  • sloc: perl: 17,391; makefile: 4
file content (30 lines) | stat: -rwxr-xr-x 444 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
27
28
29
30
# Copyright (C) 2008-2010, Sebastian Riedel.

package LoaderException2;

use warnings;
use 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;