« blib/lib/Crypt/Perl/ToDER.pm
↑ Summary
blib/lib/Crypt/Perl/X/ECDSA/CharacteristicTwoUnsupported.pm »
| 1 | package Crypt::Perl::X::ASN1::Find; | ||
| 2 | |||
| 3 | #This shouldn’t happen as long as the commands come from this library. | ||
| 4 | #But, for completeness … | ||
| 5 | |||
| 6 | use strict; | ||
| 7 | use warnings; | ||
| 8 | |||
| 9 | use parent 'Crypt::Perl::X::Base'; | ||
| 10 | |||
| 11 | sub new { | ||
| 12 | my ($class, $macro, $error) = @_; | ||
| 13 | |||
| 14 | my %attrs = ( | ||
| 15 | macro => $macro, | ||
| 16 | error => $error, | ||
| 17 | ); | ||
| 18 | |||
| 19 | if ($error) { | ||
| 20 | return $class->SUPER::new( "Failed to find ASN.1 macro “$macro”: $error", \%attrs ); | ||
| 21 | } | ||
| 22 | |||
| 23 | return $class->SUPER::new( "Failed to find ASN.1 macro “$macro”!", \%attrs ); | ||
| 24 | } | ||
| 25 | |||
| 26 | 1; |