File Coverage

blib/lib/Business/CyberSource/Exception.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 Business::CyberSource::Exception;
2 2     2   968 use strict;
  2         4  
  2         51  
3 2     2   6 use warnings;
  2         17  
  2         43  
4 2     2   6 use namespace::autoclean;
  2         3  
  2         9  
5              
6             our $VERSION = '0.010007'; # VERSION
7              
8 2     2   115 use Moose;
  2         2  
  2         10  
9             extends 'Moose::Exception';
10              
11             our @CARP_NOT = ( 'Class::MOP::Method::Wrapped', __PACKAGE__ );
12              
13             has value => (
14             isa => 'Int',
15             is => 'ro',
16             lazy => 1,
17             default => 0,
18             );
19              
20             before value => sub {
21             warnings::warnif('deprecated',
22             'method `value` is deprecated as Exception::Base is no longer in use'
23             );
24             };
25              
26             __PACKAGE__->meta->make_immutable;
27             1;
28             # ABSTRACT: base exception
29              
30             __END__
31              
32             =pod
33              
34             =encoding UTF-8
35              
36             =head1 NAME
37              
38             Business::CyberSource::Exception - base exception
39              
40             =head1 VERSION
41              
42             version 0.010007
43              
44             =head1 BUGS
45              
46             Please report any bugs or feature requests on the bugtracker website
47             https://github.com/xenoterracide/business-cybersource/issues
48              
49             When submitting a bug or request, please include a test-file or a
50             patch to an existing test-file that illustrates the bug or desired
51             feature.
52              
53             =head1 AUTHOR
54              
55             Caleb Cushing <xenoterracide@gmail.com>
56              
57             =head1 COPYRIGHT AND LICENSE
58              
59             This software is Copyright (c) 2016 by Caleb Cushing <xenoterracide@gmail.com>.
60              
61             This is free software, licensed under:
62              
63             The Artistic License 2.0 (GPL Compatible)
64              
65             =cut