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

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 94.4% 17 / 18 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/Request/Client/RegisterCapability.pm ↑ Summary blib/lib/PLS/Server/Request/Progress.pm »
1 package PLS::Server::Response::ServerNotInitialized;
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::ServerNotInitialized
11  
12 =head1 DESCRIPTION
13  
14 This is an error sent from the server to the client indicating that the
15 client sent a request before the server was initialized.
16  
17 =cut
18  
19 sub new
20 1 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
21 1 my ($class, $request) = @_;
22  
23 my %self = (
24 id => $request->{id},
25 1 error => {
26 code => -32_002,
27 message => 'server not yet initialized'
28 }
29 );
30  
31 1 return bless \%self, $class;
32 } ## end sub new
33  
34 13 1;
« blib/lib/PLS/Server/Request/Client/RegisterCapability.pm ↑ Summary blib/lib/PLS/Server/Request/Progress.pm »