Bitcoin-Crypto
view release on metacpan or search on metacpan
lib/Bitcoin/Crypto/Exception.pm view on Meta::CPAN
has param 'message' => (
isa => Str,
writer => -hidden,
);
has field 'caller' => (
isa => Maybe [ArrayRef],
default => sub {
for my $call_level (1 .. 20) {
my ($package, $file, $line) = caller $call_level;
my $package_ok = defined $package && $package !~ /^(Bitcoin::Crypto|Try::Tiny|Type::Coercion)/;
my $file_ok = defined $file && $file !~ /\(eval \d+\)/;
if ($package_ok && $file_ok) {
return [$package, $file, $line];
}
}
return undef;
},
);
( run in 1.895 second using v1.01-cache-2.11-cpan-7de36a11506 )