---
name: "Authen::U2F::Tester::Error"
section: "3pm"
platform: "linux"
package: "libauthen-u2f-tester-perl"
version: "0.03-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Authen::U2F::Tester::Error"
---

# Authen::U2F::Tester::Error(3pm)

Authen::U2F::Tester Error Response

## NAME

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

## VERSION

version 0.03

## SYNOPSIS

```
 $r = $tester->register(...);
 # or
 $r = $tester->sign(...);
 unless ($r->is_success) {
     print $r->error_code;
     print $r->error_message;
 }
```

## 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.

## 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\>

## 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.

## AUTHOR

Michael Schout \<mschout@cpan.org\>

## 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.
