| 1 | package Magpie::Error::Simplified; | ||
| 2 | 5 | $Magpie::Error::Simplified::VERSION = '1.141660'; | |
| 3 | 5 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | # A simple role to work around HTTP::Throwable's over-helpfulness | ||
| 6 | |||
| 7 | 6 | ▶ | sub body { shift->reason } |
|
Subroutine
body: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 8 | |||
| 9 | sub body_headers { | ||
| 10 | 5 | ▶ | my ($self, $body) = @_; |
|
Subroutine
body_headers: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | return [ | ||
| 12 | 5 | 'Content-Length' => length $body, | |
| 13 | ]; | ||
| 14 | } | ||
| 15 | |||
| 16 | 1 | ▶ | sub as_string { shift->body } |
|
Subroutine
as_string: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 17 | |||
| 18 | 5 | 1; | |
| 19 | __END__ | ||
| 20 | =pod | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Magpie::Error::Simplified | ||
| 25 | |||
| 26 | =head1 VERSION | ||
| 27 | |||
| 28 | version 1.141660 | ||
| 29 | |||
| 30 | =head1 AUTHORS | ||
| 31 | |||
| 32 | =over 4 | ||
| 33 | |||
| 34 | =item * | ||
| 35 | |||
| 36 | Kip Hampton <kip.hampton@tamarou.com> | ||
| 37 | |||
| 38 | =item * | ||
| 39 | |||
| 40 | Chris Prather <chris.prather@tamarou.com> | ||
| 41 | |||
| 42 | =back | ||
| 43 | |||
| 44 | =head1 COPYRIGHT AND LICENSE | ||
| 45 | |||
| 46 | This software is copyright (c) 2011 by Tamarou, LLC. | ||
| 47 | |||
| 48 | This is free software; you can redistribute it and/or modify it under | ||
| 49 | the same terms as the Perl 5 programming language system itself. | ||
| 50 | |||
| 51 | =cut | ||
| 52 | |||