/usr/share/perl5/Protocol/ACME/Exception.pm is in libprotocol-acme-perl 1.01-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | package Protocol::ACME::Exception;
use strict;
use warnings;
our $VERSION = '1.01';
# very simple stringification ... make this
# more elaborate according to taste
use overload ('""' => \&stringify);
sub stringify
{
my $self = shift;
require Data::Dumper;
return ref($self).' error: '.Data::Dumper::Dumper($self);
}
sub new
{
my $class = shift;
my $error = shift;
my $self = { status => 0, detail => "", type => "unknown" };
if ( ref $error eq "HASH" )
{
@$self{keys %$error} = values %$error;
}
elsif ( ref $error )
{
$self->{detail} = "double error: bad arg ($error) passed to exception constructor";
}
else
{
$self->{detail} = $error;
}
return bless $self, $class;
}
1;
|