1 ##############################################################################
2 # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/lib/Perl/Critic/Exception/Configuration/Option/Policy.pm $
3 # $Date: 2008-07-03 10:19:10 -0500 (Thu, 03 Jul 2008) $
6 ##############################################################################
8 package Perl::Critic::Exception::Configuration::Option::Policy;
14 use Perl::Critic::Utils qw{ &policy_short_name };
16 our $VERSION = '1.088';
18 #-----------------------------------------------------------------------------
20 use Exception::Class (
21 'Perl::Critic::Exception::Configuration::Option::Policy' => {
22 isa => 'Perl::Critic::Exception::Configuration::Option',
23 description => 'A problem with the configuration of a policy.',
24 fields => [ qw{ policy } ],
28 #-----------------------------------------------------------------------------
31 my ($class, %options) = @_;
33 my $policy = $options{policy};
35 $options{policy} = policy_short_name($policy);
38 return $class->SUPER::new(%options);
46 #-----------------------------------------------------------------------------
54 Perl::Critic::Exception::Configuration::Option::Policy - A problem with configuration of a policy.
58 A representation of a problem found with the configuration of a
59 L<Perl::Critic::Policy>, whether from a F<.perlcriticrc>, another
60 profile file, or command line.
62 This is an abstract class. It should never be instantiated.
71 The short name of the policy that had configuration problems.
79 Elliot Shank <perl@galumph.com>
83 Copyright (c) 2007-2008 Elliot Shank. All rights reserved.
85 This program is free software; you can redistribute it and/or modify
86 it under the same terms as Perl itself. The full text of this license
87 can be found in the LICENSE file included with this module.
93 # cperl-indent-level: 4
95 # indent-tabs-mode: nil
96 # c-indentation-style: bsd
98 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :