Money/BaseException.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.4% 27 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Money/BaseException/InvalidCurrencyFormat.pm ↑ Summary Money/BaseException/ExcessivePrecision.pm »
1 package Data::Money::BaseException;
2  
3 8 $Data::Money::BaseException::VERSION = '0.21';
4 8 $Data::Money::BaseException::AUTHORITY = 'cpan:GPHAT';
5  
6 =head1 NAME
7  
8 Data::Money::BaseException - Exception handler for Data::Money.
9  
10 =head1 VERSION
11  
12 Version 0.21
13  
14 =cut
15  
16 8 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 8 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 8 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 8 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 8 requires 'error';
22 8 with 'Throwable';
23  
24 8 ▶use overload q{""} => 'as_string', fallback => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 4 ▶sub as_string {
Subroutine as_string: called CC=1 SCAR=0.0
Pod undocumented
27 4 my ($self) = @_;
28  
29 4 return $self->error;
30 }
31  
32 =head1 DESCRIPTION
33  
34 B<FOR INTERNAL USE ONLY>
35  
36 =head1 AUTHOR
37  
38 Cory G Watson, C<< <gphat at cpan.org> >>
39  
40 Currently maintained by Mohammad S Anwar (MANWAR) C<< <mohammad.anwar at yahoo.com> >>
41  
42 =head1 REPOSITORY
43  
44 L<https://github.com/manwar/Data-Money>
45  
46 =head1 LICENSE AND COPYRIGHT
47  
48 Copyright 2010 Cory Watson
49  
50 This program is free software; you can redistribute it and/or modify it under the
51 terms of either: the GNU General Public License as published by the Free Software
52 Foundation; or the Artistic License.
53  
54 See L<here|http://dev.perl.org/licenses> for more information.
55  
56 =cut
57  
58 8 1; # End of Data::Money::BaseException
« Money/BaseException/InvalidCurrencyFormat.pm ↑ Summary Money/BaseException/ExcessivePrecision.pm »