/usr/share/perl5/JSON/WebToken/Exception.pm is in libjson-webtoken-perl 0.10-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 | package JSON::WebToken::Exception;
use strict;
use warnings;
use overload (
q|""| => \&to_string,
);
use Carp qw/croak/;
sub throw {
my ($class, %args) = @_;
my $self = bless \%args, $class;
croak $self;
}
sub code { $_[0]->{code} }
sub message { $_[0]->{message} }
sub to_string {
$_[0]->message;
}
1;
__END__
|