blib/lib/PLS/Server/Response/Cancelled.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 94.1% 16 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/PLS/Server/Response.pm ↑ Summary blib/lib/PLS/Server/Response/InvalidRequest.pm »
1 package PLS::Server::Response::Cancelled;
2  
3 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 13 ▶use parent q(PLS::Server::Response);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 PLS::Server::Response::Cancelled
11  
12 =head1 DESCRIPTION
13  
14 This is a message from the server to the client indicating that
15 a request has been cancelled.
16  
17 =cut
18  
19 sub new
20 1 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
21 1 my ($class, %args) = @_;
22  
23 return
24 bless {
25 id => $args{id},
26 1 error => {code => -32_800, message => 'Request cancelled.'}
27 }, $class;
28 } ## end sub new
29  
30 13 1;
« blib/lib/PLS/Server/Response.pm ↑ Summary blib/lib/PLS/Server/Response/InvalidRequest.pm »