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