File Coverage

blib/lib/Appium/ErrorHandler.pm
Criterion Covered Total %
statement 3 6 50.0
branch n/a
condition 0 3 0.0
subroutine 1 2 50.0
pod 1 1 100.0
total 5 12 41.6


line stmt bran cond sub pod time code
1             package Appium::ErrorHandler;
2             $Appium::ErrorHandler::VERSION = '0.0804';
3             # ABSTRACT: Reformat the error messages for user consumption
4 5     5   38 use Moo;
  5         10  
  5         30  
5             extends 'Selenium::Remote::ErrorHandler';
6              
7             sub process_error {
8 0     0 1   my ($self, $resp) = @_;
9 0           my $value = $resp->{value};
10              
11             return {
12             stackTrace => $value->{stackTrace},
13             error => $self->STATUS_CODE->{$resp->{status}},
14             message => $value->{origValue} || $value->{message}
15 0   0       };
16             }
17              
18              
19             1;
20              
21             __END__