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 πŸ‘‘

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