| 1 | package Magpie::Error::Simplified; | ||
| 2 | 5 | $Magpie::Error::Simplified::VERSION = '1.163200'; | |
| 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 | 5 | ▶ | sub body_headers { |
|
Subroutine
body_headers: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 10 | 5 | my ($self, $body) = @_; | |
| 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 | |||
| 20 | __END__ | ||