File Coverage

blib/lib/VMware/vCloudDirector2/Error.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package VMware::vCloudDirector2::Error;
2              
3             # ABSTRACT: Throw errors with the best of them
4              
5 4     4   94 use strict;
  4         10  
  4         159  
6 4     4   90 use warnings;
  4         11  
  4         248  
7              
8             our $VERSION = '0.108'; # VERSION
9             our $AUTHORITY = 'cpan:NIGELM'; # AUTHORITY
10              
11 4     4   27 use Moose;
  4         8  
  4         35  
12 4     4   29972 use Method::Signatures;
  4         10  
  4         45  
13              
14             extends 'Throwable::Error';
15              
16             # ------------------------------------------------------------------------
17              
18             has uri =>
19             ( is => 'ro', isa => 'URI', documentation => 'An optional URI that was being processed' );
20              
21             has response => ( is => 'ro', isa => 'Object', documentation => 'The response object' );
22             has object => ( is => 'ro', isa => 'Object', documentation => 'The object that threw this' );
23             has request => ( is => 'ro', isa => 'Object', documentation => 'The request object' );
24              
25             # ------------------------------------------------------------------------
26              
27             __PACKAGE__->meta->make_immutable;
28              
29             1;
30              
31             __END__
32              
33             =pod
34              
35             =encoding UTF-8
36              
37             =head1 NAME
38              
39             VMware::vCloudDirector2::Error - Throw errors with the best of them
40              
41             =head1 VERSION
42              
43             version 0.108
44              
45             =head1 AUTHOR
46              
47             Nigel Metheringham <nigelm@cpan.org>
48              
49             =head1 COPYRIGHT AND LICENSE
50              
51             This software is copyright (c) 2019 by Nigel Metheringham.
52              
53             This is free software; you can redistribute it and/or modify it under
54             the same terms as the Perl 5 programming language system itself.
55              
56             =cut