1 ##############################################################################
2 # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/lib/Perl/Critic/Exception/Configuration/Option/Global/ExtraParameter.pm $
3 # $Date: 2008-07-03 10:19:10 -0500 (Thu, 03 Jul 2008) $
6 ##############################################################################
8 package Perl::Critic::Exception::Configuration::Option::Global::ExtraParameter;
16 our $VERSION = '1.088';
18 #-----------------------------------------------------------------------------
20 use Exception::Class (
21 'Perl::Critic::Exception::Configuration::Option::Global::ExtraParameter' => {
22 isa => 'Perl::Critic::Exception::Configuration::Option::Global',
23 description => 'The configuration referred to a non-existant global option.',
24 alias => 'throw_extra_global',
28 #-----------------------------------------------------------------------------
30 Readonly::Array our @EXPORT_OK => qw< throw_extra_global >;
32 #-----------------------------------------------------------------------------
37 my $source = $self->source();
39 $source = qq{ (found in "$source")};
45 my $option_name = $self->option_name();
47 return qq{"$option_name" is not a supported option$source.};
55 #-----------------------------------------------------------------------------
63 Perl::Critic::Exception::Configuration::Option::Global::ExtraParameter - The configuration referred to a non-existent global option.
67 A representation of the configuration attempting to specify a value
68 for an option that L<Perl::Critic> doesn't have, whether from a
69 F<.perlcriticrc>, another profile file, or command line.
76 =item C<< throw( option_name => $option_name, source => $source ) >>
78 See L<Exception::Class/"throw">.
81 =item C<< new( option_name => $option_name, source => $source ) >>
83 See L<Exception::Class/"new">.
93 =item C<full_message()>
95 Provide a standard message for values for non-existent parameters for
96 policies. See L<Exception::Class/"full_message">.
104 Elliot Shank <perl@galumph.com>
108 Copyright (c) 2007-2008 Elliot Shank. All rights reserved.
110 This program is free software; you can redistribute it and/or modify
111 it under the same terms as Perl itself. The full text of this license
112 can be found in the LICENSE file included with this module.
118 # cperl-indent-level: 4
120 # indent-tabs-mode: nil
121 # c-indentation-style: bsd
123 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :