Throwable/Role/Generic.pm

filter: Statementstmt 85.7% 12 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 71.4% 15 / 21 CC 1 SCAR 3.4
CC
1
Cov
86%
default_status_code
2.0
default_reason
2.0
BEGIN
1.0
CRAP 1.4
« Throwable/Variant.pm ↑ Summary Throwable/Role/Status/InternalServerError.pm »
1 package HTTP::Throwable::Role::Generic 0.028;
2 1 our $AUTHORITY = 'cpan:STEVAN';
3  
4 1 ▶use Carp qw(confess);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 with 'HTTP::Throwable';
9  
10 0 ▶sub default_status_code {
Subroutine default_status_code: not called CC=1 SCAR=6.9
Pod undocumented
11 0 confess "generic HTTP::Throwable must be given status code in constructor";
12 }
13  
14 0 ▶sub default_reason {
Subroutine default_reason: not called CC=1 SCAR=6.9
Pod undocumented
15 0 confess "generic HTTP::Throwable must be given reason in constructor";
16 }
17  
18 1 ▶no Moo::Role; 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 =pod
21  
22 =encoding UTF-8
23  
24 =head1 NAME
25  
26 HTTP::Throwable::Role::Generic - a generic built-by-hand exception
27  
28 =head1 VERSION
29  
30 version 0.028
31  
32 =head1 DESCRIPTION
33  
34 This role is used (for boring internals-related reasons) when you throw an
35 exception with no special roles mixed in.
36  
37 =head1 PERL VERSION
38  
39 This library should run on perls released even a long time ago. It should work
40 on any version of perl released in the last five years.
41  
42 Although it may work on older versions of perl, no guarantee is made that the
43 minimum required version will not be increased. The version may be increased
44 for any reason, and there is no promise that patches will be accepted to lower
45 the minimum required perl.
46  
47 =head1 AUTHORS
48  
49 =over 4
50  
51 =item *
52  
53 Stevan Little <stevan.little@iinteractive.com>
54  
55 =item *
56  
57 Ricardo Signes <cpan@semiotic.systems>
58  
59 =back
60  
61 =head1 COPYRIGHT AND LICENSE
62  
63 This software is copyright (c) 2011 by Infinity Interactive, Inc.
64  
65 This is free software; you can redistribute it and/or modify it under
66 the same terms as the Perl 5 programming language system itself.
67  
68 =cut
69  
70 __END__
« Throwable/Variant.pm ↑ Summary Throwable/Role/Status/InternalServerError.pm »