Authen...:Error(3pm)
π Authen::U2F::Tester::Error β bestie's guide π
okay so real talk: this is a page from the User Contributed Perl Documentation, and the star of the show is Authen::U2F::Tester::Error β the Error Response object from Authen::U2F::Tester. she's not the main character, she's the error main character. let's get into it π«Ά
β¨ NAME β¨
Authen::U2F::Tester::Error β Authen::U2F::Tester Error Response. that's her, that's the whole name, no notes π
πΈ VERSION πΈ
version 0.03 β yes bestie, we're on 0.03, write it down π
π¦ SYNOPSIS π¦
the vibe is: you call register or sign, and if it flops, this little guy comes back to you:
$r = $tester->register(...);
# or
$r = $tester->sign(...);
unless ($r->is_success) {
print $r->error_code;
print $r->error_message;
}
like. the unless block is literally the "oh no what happened" moment and this object is the one answering π
π DESCRIPTION π
so here's the tea: this object is what you get back from Authen::U2F::Tester sign or register requests if the request resulted in an error. no error, no object. she only shows up when things go sideways π
π METHODS π
π new(int)
single arg constructor, periodt. the argument is a U2F error code. and listen β peep Authen::U2F::Tester::Const for the constants you should be using here, don't just raw-dog an integer, iykyk β¨
π error_code(): int
gets you the error code. that's it. that's the method π
π error_message(): string
gets you the error message β the human-readable "what went wrong" text π¬
π is_success(): bool
returns false, always, because this object is only returned for errors. like, bestie, if you're holding this object the answer was always gonna be no π
π SEE ALSO π
Authen::U2F::Testerβ go read that one next, fr fr
β SOURCE β
the development version lives on github at <http://https://github.com/mschout/perl-authen-u2f-tester> and you can clone it from <git://https://github.com/mschout/perl-authen-u2f-tester.git>. go forth and git clone, icon π§
π₯ BUGS π₯
please report any bugs or feature requests on the bugtracker website <https://github.com/mschout/perl-authen-u2f-tester/issues>
and when you submit a bug or a request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. no vibes-only bug reports, we need receipts π«‘
πΈ AUTHOR πΈ
Michael Schout <mschout@cpan.org> β legend behavior, thank you for your service π
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2017 by Michael Schout.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. free as in bestie, we love to see it π
and that's the whole page, no cap. this was perl v5.26.2 doing its thing back on 2018-04-12, and yes the header on the original says Authen...:Error(3pm) because it got truncated and honestly? relatable, sometimes we don't fit in the terminal either ππ mwah, go handle your errors bestie β¨
π¦ where this page comes from
- ubuntu jammy: libauthen-u2f-tester-perl 0.03-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libauthen-u2f-tester-perl 0.03-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms