« lib/Spreadsheet/Reader/ExcelXML/XMLReader/WorkbookRels.pm
↑ Summary
lib/Spreadsheet/Reader/ExcelXML/ZipReader.pm »
| 1 | package Spreadsheet::Reader::ExcelXML::Error; | ||||||||||
| 2 | 35 | our $AUTHORITY = 'cpan:JANDREW'; | |||||||||
| 3 | 35 | ▶ | use version; our $VERSION = version->declare('v0.16.8'); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | ###LogSD warn "You uncovered internal logging statements for Spreadsheet::Reader::ExcelXML::Error-$VERSION"; | ||||||||||
| 5 | |||||||||||
| 6 | 35 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 35 | ▶ | use Carp qw( cluck longmess ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 35 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 35 | ▶ | use MooseX::HasDefaults::RO; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 35 | ▶ | use Types::Standard qw( Str Bool ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 35 | ▶ | use lib '../../../../lib',; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 35 | ▶ | use Spreadsheet::Reader::ExcelXML::Types qw( ErrorString ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | ###LogSD with 'Log::Shiras::LogSpace'; | ||||||||||
| 14 | ###LogSD use Log::Shiras::Telephone; | ||||||||||
| 15 | |||||||||||
| 16 | #########1 Public Attributes 3#########4#########5#########6#########7#########8#########9 | ||||||||||
| 17 | |||||||||||
| 18 | has error_string =>( | ||||||||||
| 19 | isa => ErrorString, | ||||||||||
| 20 | clearer => 'clear_error', | ||||||||||
| 21 | reader => 'error', | ||||||||||
| 22 | writer => 'set_error', | ||||||||||
| 23 | predicate => 'has_error', | ||||||||||
| 24 | init_arg => undef, | ||||||||||
| 25 | coerce => 1, | ||||||||||
| 26 | 94 | ▶ | trigger => sub{ | ||||||||
|
Subroutine
__ANON__: called CC=3 SCAR=11.2
| |||||||||||
| 27 | 94 | my ( $self, $error ) = @_; | |||||||||
| 28 | ###LogSD my $phone = Log::Shiras::Telephone->new( | ||||||||||
| 29 | ###LogSD name_space => $self->get_all_space . '::set_error', ); | ||||||||||
| 30 | 94 | my $error_string; | |||||||||
| 31 | ###LogSD $error_string = "In name_space: " . $self->get_all_space . "\n"; | ||||||||||
| 32 | 94 | ▶ | if( $self->spewing_longmess ){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 33 | 94 | $error_string .= longmess( $error ); | |||||||||
| 34 | }else{ | ||||||||||
| 35 | 0 | $error_string .= $error; | |||||||||
| 36 | } | ||||||||||
| 37 | ###LogSD $phone->talk( level => 'warn', message => [ $error_string . "\n------------------------------\n" ] ); | ||||||||||
| 38 | 94 | ▶ | if( $self->if_warn ){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 39 | 1 | warn "$error_string\n"; | |||||||||
| 40 | } | ||||||||||
| 41 | }, | ||||||||||
| 42 | 35 | ); | |||||||||
| 43 | |||||||||||
| 44 | 35 | has should_warn =>( | |||||||||
| 45 | isa => Bool, | ||||||||||
| 46 | default => 0, | ||||||||||
| 47 | writer => 'set_warnings', | ||||||||||
| 48 | reader => 'if_warn', | ||||||||||
| 49 | ); | ||||||||||
| 50 | |||||||||||
| 51 | 35 | has spew_longmess =>( | |||||||||
| 52 | isa => Bool, | ||||||||||
| 53 | default => 1, | ||||||||||
| 54 | writer => 'should_spew_longmess', | ||||||||||
| 55 | reader => 'spewing_longmess', | ||||||||||
| 56 | ); | ||||||||||
| 57 | |||||||||||
| 58 | #########1 Public Methods 3#########4#########5#########6#########7#########8#########9 | ||||||||||
| 59 | |||||||||||
| 60 | |||||||||||
| 61 | |||||||||||
| 62 | #########1 Private Attributes 3#########4#########5#########6#########7#########8#########9 | ||||||||||
| 63 | |||||||||||
| 64 | |||||||||||
| 65 | |||||||||||
| 66 | #########1 Private Methods 3#########4#########5#########6#########7#########8#########9 | ||||||||||
| 67 | |||||||||||
| 68 | |||||||||||
| 69 | |||||||||||
| 70 | #########1 Phinish 3#########4#########5#########6#########7#########8#########9 | ||||||||||
| 71 | |||||||||||
| 72 | 35 | ▶ | no Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 73 | 35 | __PACKAGE__->meta->make_immutable; | |||||||||
| 74 | |||||||||||
| 75 | 35 | 1; | |||||||||
| 76 | |||||||||||
| 77 | #########1 Documentation 3#########4#########5#########6#########7#########8#########9 | ||||||||||
| 78 | |||||||||||
| 79 | __END__ | ||||||||||