File Coverage

blib/lib/Perl/ToPerl6/Exception/Configuration/Generic.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 19 19 100.0


line stmt bran cond sub pod time code
1             package Perl::ToPerl6::Exception::Configuration::Generic;
2              
3 1     1   14 use 5.006001;
  1         3  
4 1     1   5 use strict;
  1         1  
  1         17  
5 1     1   4 use warnings;
  1         2  
  1         19  
6              
7 1     1   5 use Readonly;
  1         1  
  1         51  
8              
9             #-----------------------------------------------------------------------------
10              
11             use Exception::Class (
12 1         8 'Perl::ToPerl6::Exception::Configuration::Generic' => {
13             isa => 'Perl::ToPerl6::Exception::Configuration',
14             description =>
15             q{A problem with Perl::ToPerl6 configuration that isn't related to an option.},
16             alias => 'throw_generic',
17             },
18 1     1   716 );
  1         8609  
19              
20             #-----------------------------------------------------------------------------
21              
22             Readonly::Array our @EXPORT_OK => qw< throw_generic >;
23              
24             #-----------------------------------------------------------------------------
25              
26             1;
27              
28             __END__
29              
30             #-----------------------------------------------------------------------------
31              
32             =pod
33              
34             =for stopwords
35              
36             =head1 NAME
37              
38             Perl::ToPerl6::Exception::Configuration::Generic - A problem with L<Perl::ToPerl6|Perl::ToPerl6> configuration that doesn't involve an option.
39              
40             =head1 DESCRIPTION
41              
42             A representation of a problem found with the configuration of
43             L<Perl::ToPerl6|Perl::ToPerl6>, whether from a F<.perlmogrifyrc>, another
44             profile file, or command line.
45              
46             This covers things like file reading and parsing errors.
47              
48              
49             =head1 INTERFACE SUPPORT
50              
51             This is considered to be a public class. Any changes to its interface
52             will go through a deprecation cycle.
53              
54              
55             =head1 CLASS METHODS
56              
57             =over
58              
59             =item C<< throw( message => $message, source => $source ) >>
60              
61             See L<Exception::Class/"throw">.
62              
63              
64             =item C<< new( message => $message, source => $source ) >>
65              
66             See L<Exception::Class/"new">.
67              
68              
69             =back
70              
71              
72             =head1 AUTHOR
73              
74             Elliot Shank <perl@galumph.com>
75              
76             =head1 COPYRIGHT
77              
78             Copyright (c) 2007-2011 Elliot Shank.
79              
80             This program is free software; you can redistribute it and/or modify
81             it under the same terms as Perl itself. The full text of this license
82             can be found in the LICENSE file included with this module.
83              
84             =cut
85              
86             # Local Variables:
87             # mode: cperl
88             # cperl-indent-level: 4
89             # fill-column: 78
90             # indent-tabs-mode: nil
91             # c-indentation-style: bsd
92             # End:
93             # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :