File Coverage

blib/lib/PLS/Server/Response/InvalidRequest.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 15 16 93.7


line stmt bran cond sub pod time code
1              
2             use strict;
3 9     9   54 use warnings;
  9         9  
  9         216  
4 9     9   52  
  9         17  
  9         181  
5             use parent 'PLS::Server::Response';
6 9     9   36  
  9         18  
  9         28  
7             =head1 NAME
8              
9             PLS::Server::Response::InvalidRequest
10              
11             =head1 DESCRIPTION
12              
13             This is an error sent from the server to the client indicating that the
14             client sent an invalid request.
15              
16             =cut
17              
18             {
19             my ($class, $request) = @_;
20              
21 1     1 0 3 return
22             bless {
23             id => $request->{id},
24             error => {
25             code => -32600,
26 1         21 message => 'Invalid request.'
27             }
28             }, $class;
29             } ## end sub new
30              
31             1;