| 1 | package Net::ACME2::X::HTTP::Network; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use parent qw( Net::ACME2::X::Generic ); | ||
| 7 | |||
| 8 | #named args required: | ||
| 9 | # | ||
| 10 | # error | ||
| 11 | # method | ||
| 12 | # url | ||
| 13 | # | ||
| 14 | sub new { | ||
| 15 | my ( $self, $args_hr ) = @_; | ||
| 16 | |||
| 17 | return $self->SUPER::new( | ||
| 18 | "The system failed to send an HTTP â$args_hr->{'method'}â request to â$args_hr->{'url'}â because of an error: $args_hr->{'error'}", | ||
| 19 | $args_hr, | ||
| 20 | ); | ||
| 21 | } | ||
| 22 | |||
| 23 | 1; |