Throwable/Role/BoringText.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 92.8% 13 / 14 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
text_body
1.0
BEGIN
1.0
CRAP 1.0
« Throwable/Role/Status/UseProxy.pm ↑ Summary Throwable/Role/Status/NotModified.pm »
1 package HTTP::Throwable::Role::BoringText;
2 5 our $AUTHORITY = 'cpan:STEVAN';
3 5 $HTTP::Throwable::Role::BoringText::VERSION = '0.027';
4 5 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 83 ▶sub text_body { $_[0]->status_line }
Subroutine text_body: called CC=1 SCAR=0.0
Pod undocumented
7  
8 5 ▶no Moo::Role; 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 =pod
11  
12 =encoding UTF-8
13  
14 =head1 NAME
15  
16 HTTP::Throwable::Role::BoringText - provide the simplest text_body method possible
17  
18 =head1 VERSION
19  
20 version 0.027
21  
22 =head1 OVERVIEW
23  
24 This role is as simple as can be. It provides a single method, C<text_body>,
25 which returns the result of calling the C<status_line> method.
26  
27 This method exists so that exception classes can easily be compatible with the
28 L<HTTP::Throwable::Role::TextBody> role to provide a plain text body when
29 converted to an HTTP message. Most of the core well-known exception types
30 consume this method.
31  
32 =head1 AUTHORS
33  
34 =over 4
35  
36 =item *
37  
38 Stevan Little <stevan.little@iinteractive.com>
39  
40 =item *
41  
42 Ricardo Signes <rjbs@cpan.org>
43  
44 =back
45  
46 =head1 COPYRIGHT AND LICENSE
47  
48 This software is copyright (c) 2011 by Infinity Interactive, Inc.
49  
50 This is free software; you can redistribute it and/or modify it under
51 the same terms as the Perl 5 programming language system itself.
52  
53 =cut
54  
55 __END__
« Throwable/Role/Status/UseProxy.pm ↑ Summary Throwable/Role/Status/NotModified.pm »