logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Authen::U2F::Tester::Error - Authen::U2F::Tester Error Response

Author

       Michael Schout <mschout@cpan.org>

Bugs

       Please    report    any    bugs     or     feature     requests     on     the     bugtracker     website
       <https://github.com/mschout/perl-authen-u2f-tester/issues>

       When  submitting  a  bug  or request, please include a test-file or a patch to an existing test-file that
       illustrates the bug or desired feature.

Description

       This object is returned from Authen::U2F::Tester sign or register requests if the request resulted in an
       error.

Methods

new(int)
       Single arg constructor.  Argument is a U2F error code.  See Authen::U2F::Tester::Const for constants that
       should be used for this.

   error_code():int
       Get the error code

   error_message():string
       Get the error message

   is_success():bool
       Returns false as this object is only returned for errors.

Name

       Authen::U2F::Tester::Error - Authen::U2F::Tester Error Response

See Also

       •   Authen::U2F::Tester

Source

       The  development  version  is on github at <http://https://github.com/mschout/perl-authen-u2f-tester> and
       may be cloned from <git://https://github.com/mschout/perl-authen-u2f-tester.git>

Synopsis

        $r = $tester->register(...);

        # or

        $r = $tester->sign(...);

        unless ($r->is_success) {
            print $r->error_code;
            print $r->error_message;
        }

Version

       version 0.03

See Also