Throwable/Role/Generic.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 72.7% 16 / 22 SCAR 0.0
CC
1
Cov
87%
default_status_code
2.0
default_reason
2.0
BEGIN
1.0
CRAP 1.0
« Throwable/Role/Status/Unauthorized.pm ↑ Summary Throwable/Role/NoBody.pm »
1 package HTTP::Throwable::Role::Generic;
2 1 our $AUTHORITY = 'cpan:STEVAN';
3 1 $HTTP::Throwable::Role::Generic::VERSION = '0.027';
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 sub default_status_code {
11 0 ▶ confess "generic HTTP::Throwable must be given status code in constructor";
Subroutine default_status_code: not called CC=1 SCAR=6.9
Pod undocumented
12 }
13  
14 sub default_reason {
15 0 ▶ confess "generic HTTP::Throwable must be given reason in constructor";
Subroutine default_reason: not called CC=1 SCAR=6.9
Pod undocumented
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.027
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 AUTHORS
38  
39 =over 4
40  
41 =item *
42  
43 Stevan Little <stevan.little@iinteractive.com>
44  
45 =item *
46  
47 Ricardo Signes <rjbs@cpan.org>
48  
49 =back
50  
51 =head1 COPYRIGHT AND LICENSE
52  
53 This software is copyright (c) 2011 by Infinity Interactive, Inc.
54  
55 This is free software; you can redistribute it and/or modify it under
56 the same terms as the Perl 5 programming language system itself.
57  
58 =cut
59  
60 __END__
« Throwable/Role/Status/Unauthorized.pm ↑ Summary Throwable/Role/NoBody.pm »