| 1 | package Net::ACME2::X::UnexpectedResponse; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use parent qw( Net::ACME2::X::Generic ); | ||
| 7 | |||
| 8 | #named args required: | ||
| 9 | # | ||
| 10 | # uri | ||
| 11 | # status | ||
| 12 | # reason | ||
| 13 | # | ||
| 14 | #optional: | ||
| 15 | # headers | ||
| 16 | # | ||
| 17 | sub new { | ||
| 18 | my ( $self, $args_hr ) = @_; | ||
| 19 | |||
| 20 | return $self->SUPER::new( | ||
| 21 | "The [asis,ACME] function “$args_hr->{'uri'}” returned an unexpected status: “$args_hr->{'status'}” ($args_hr->{'reason'}).", | ||
| 22 | $args_hr, | ||
| 23 | ); | ||
| 24 | } | ||
| 25 | |||
| 26 | 1; |