Kubernetes/Exception.pm

filter: Statementstmt 91.8% 45 / 49 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 63.6% 7 / 11 Podpod n/a totaltotal 86.6% 52 / 60 CC 1 SCAR 0.4
CC
1
Cov
92%
__ANON__
1.1
__ANON__
1.1
__ANON__
1.1
CRAP 1.0
« Kubernetes/Resource/Endpoint.pm ↑ Summary Kubernetes/Resource/Event.pm »
1 package Net::Kubernetes::Exception;
2 # ABSTRACT: Base class for all kubernetes exceptions.
3 4 $Net::Kubernetes::Exception::VERSION = '1.03';
4 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 extends "Throwable::Error";
7  
8 4 has code => (
9 is => 'ro',
10 isa => 'Num',
11 required => 0,
12 );
13  
14 4 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 0 ▶subtype 'Net::Kubernetes::Exception::ClientException', as 'Net::Kubernetes::Exception', where {! defined $_->code};
Subroutine __ANON__: not called CC=1 SCAR=1.2
17  
18 0 ▶subtype 'Net::Kubernetes::Exception::NotFound', as 'Net::Kubernetes::Exception', where { $_->code == 404 };
Subroutine __ANON__: not called CC=1 SCAR=1.2
19  
20 0 ▶subtype 'Net::Kubernetes::Exception::Conflict', as 'Net::Kubernetes::Exception', where { $_->code == 409 };
Subroutine __ANON__: not called CC=1 SCAR=1.2
21  
22 0 ▶subtype 'Net::Kubernetes::Exception::BadRequest', as 'Net::Kubernetes::Exception', where { $_->code == 400 };
Subroutine __ANON__: not called CC=1 SCAR=1.2
23  
24 4 ▶no Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26  
27 package Net::Kunbernetes::Exception::ClientException;
28 # ABSTRACT: Exception class for client side errors
29 4 $Net::Kunbernetes::Exception::ClientException::VERSION = '1.03';
30 4 require Net::Kubernetes::Exception;
31 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 4 extends 'Net::Kubernetes::Exception';
34 4 extends 'Throwable::Error';
35  
36  
37 package Net::Kunbernetes::Exception::NotFound;
38 # ABSTRACT: Kubernetes Not found exception (code 404)
39 4 $Net::Kunbernetes::Exception::NotFound::VERSION = '1.03';
40 4 require Net::Kubernetes::Exception;
41 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
42  
43 4 extends 'Net::Kubernetes::Exception';
44 4 extends 'Throwable::Error';
45  
46 package Net::Kunbernetes::Exception::Conflict;
47 # ABSTRACT: Kubernetes 'Conflict' exception (code 409)
48 4 $Net::Kunbernetes::Exception::Conflict::VERSION = '1.03';
49 4 require Net::Kubernetes::Exception;
50 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
51  
52 4 extends 'Net::Kubernetes::Exception';
53 4 extends 'Throwable::Error';
54  
55 package Net::Kunbernetes::Exception::BadRequest;
56 # ABSTRACT: Kubernetes 'Bad Request' exception (code 400)
57 4 $Net::Kunbernetes::Exception::BadRequest::VERSION = '1.03';
58 4 require Net::Kubernetes::Exception;
59 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
60  
61 4 extends 'Net::Kubernetes::Exception';
62 4 extends 'Throwable::Error';
63  
64 4 return 42;
65  
66 __END__
« Kubernetes/Resource/Endpoint.pm ↑ Summary Kubernetes/Resource/Event.pm »