| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Perl::ToPerl6::Exception::Configuration::Option::Transformer::ExtraParameter; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 1 |  |  | 1 |  | 15 | use 5.006001; | 
|  | 1 |  |  |  |  | 3 |  | 
| 4 | 1 |  |  | 1 |  | 4 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 99 |  | 
| 5 | 1 |  |  | 1 |  | 5 | use warnings; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 21 |  | 
| 6 |  |  |  |  |  |  |  | 
| 7 | 1 |  |  | 1 |  | 4 | use Readonly; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 57 |  | 
| 8 |  |  |  |  |  |  |  | 
| 9 |  |  |  |  |  |  | #----------------------------------------------------------------------------- | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  | use Exception::Class ( | 
| 12 | 1 |  |  |  |  | 6 | 'Perl::ToPerl6::Exception::Configuration::Option::Transformer::ExtraParameter' => { | 
| 13 |  |  |  |  |  |  | isa         => 'Perl::ToPerl6::Exception::Configuration::Option::Transformer', | 
| 14 |  |  |  |  |  |  | description => 'The configuration of a transformer referred to a non-existant parameter.', | 
| 15 |  |  |  |  |  |  | alias       => 'throw_extra_parameter', | 
| 16 |  |  |  |  |  |  | }, | 
| 17 | 1 |  |  | 1 |  | 6 | ); | 
|  | 1 |  |  |  |  | 1 |  | 
| 18 |  |  |  |  |  |  |  | 
| 19 |  |  |  |  |  |  | #----------------------------------------------------------------------------- | 
| 20 |  |  |  |  |  |  |  | 
| 21 |  |  |  |  |  |  | Readonly::Array our @EXPORT_OK => qw< throw_extra_parameter >; | 
| 22 |  |  |  |  |  |  |  | 
| 23 |  |  |  |  |  |  | #----------------------------------------------------------------------------- | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  | sub full_message { | 
| 26 | 0 |  |  | 0 | 1 |  | my ( $self ) = @_; | 
| 27 |  |  |  |  |  |  |  | 
| 28 | 0 |  |  |  |  |  | my $source = $self->source(); | 
| 29 | 0 | 0 |  |  |  |  | if ($source) { | 
| 30 | 0 |  |  |  |  |  | $source = qq{ (found in "$source")}; | 
| 31 |  |  |  |  |  |  | } | 
| 32 |  |  |  |  |  |  | else { | 
| 33 | 0 |  |  |  |  |  | $source = q{}; | 
| 34 |  |  |  |  |  |  | } | 
| 35 |  |  |  |  |  |  |  | 
| 36 | 0 |  |  |  |  |  | my $transformer = $self->transformer(); | 
| 37 | 0 |  |  |  |  |  | my $option_name = $self->option_name(); | 
| 38 |  |  |  |  |  |  |  | 
| 39 |  |  |  |  |  |  | return | 
| 40 | 0 |  |  |  |  |  | qq{The $transformer transformer doesn't take a "$option_name" option$source.}; | 
| 41 |  |  |  |  |  |  | } | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | 1; | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | __END__ | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | #----------------------------------------------------------------------------- | 
| 49 |  |  |  |  |  |  |  | 
| 50 |  |  |  |  |  |  | =pod | 
| 51 |  |  |  |  |  |  |  | 
| 52 |  |  |  |  |  |  | =for stopwords | 
| 53 |  |  |  |  |  |  |  | 
| 54 |  |  |  |  |  |  | =head1 NAME | 
| 55 |  |  |  |  |  |  |  | 
| 56 |  |  |  |  |  |  | Perl::ToPerl6::Exception::Configuration::Option::Transformer::ExtraParameter - The configuration referred to a non-existent parameter for a transformer. | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 59 |  |  |  |  |  |  |  | 
| 60 |  |  |  |  |  |  | A representation of the configuration attempting to specify a value | 
| 61 |  |  |  |  |  |  | for a parameter that a L<Perl::ToPerl6::Transformer|Perl::ToPerl6::Transformer> | 
| 62 |  |  |  |  |  |  | doesn't have, whether from a F<.perlmogrifyrc>, another profile file, | 
| 63 |  |  |  |  |  |  | or command line. | 
| 64 |  |  |  |  |  |  |  | 
| 65 |  |  |  |  |  |  |  | 
| 66 |  |  |  |  |  |  | =head1 INTERFACE SUPPORT | 
| 67 |  |  |  |  |  |  |  | 
| 68 |  |  |  |  |  |  | This is considered to be a public class.  Any changes to its interface | 
| 69 |  |  |  |  |  |  | will go through a deprecation cycle. | 
| 70 |  |  |  |  |  |  |  | 
| 71 |  |  |  |  |  |  |  | 
| 72 |  |  |  |  |  |  | =head1 CLASS METHODS | 
| 73 |  |  |  |  |  |  |  | 
| 74 |  |  |  |  |  |  | =over | 
| 75 |  |  |  |  |  |  |  | 
| 76 |  |  |  |  |  |  | =item C<< throw( transformer => $transformer, option_name => $option_name, source => $source ) >> | 
| 77 |  |  |  |  |  |  |  | 
| 78 |  |  |  |  |  |  | See L<Exception::Class/"throw">. | 
| 79 |  |  |  |  |  |  |  | 
| 80 |  |  |  |  |  |  |  | 
| 81 |  |  |  |  |  |  | =item C<< new( transformer => $transformer, option_name => $option_name, source => $source ) >> | 
| 82 |  |  |  |  |  |  |  | 
| 83 |  |  |  |  |  |  | See L<Exception::Class/"new">. | 
| 84 |  |  |  |  |  |  |  | 
| 85 |  |  |  |  |  |  |  | 
| 86 |  |  |  |  |  |  | =back | 
| 87 |  |  |  |  |  |  |  | 
| 88 |  |  |  |  |  |  |  | 
| 89 |  |  |  |  |  |  | =head1 METHODS | 
| 90 |  |  |  |  |  |  |  | 
| 91 |  |  |  |  |  |  | =over | 
| 92 |  |  |  |  |  |  |  | 
| 93 |  |  |  |  |  |  | =item C<full_message()> | 
| 94 |  |  |  |  |  |  |  | 
| 95 |  |  |  |  |  |  | Provide a standard message for values for non-existent parameters for | 
| 96 |  |  |  |  |  |  | transformers.  See L<Exception::Class/"full_message">. | 
| 97 |  |  |  |  |  |  |  | 
| 98 |  |  |  |  |  |  |  | 
| 99 |  |  |  |  |  |  | =back | 
| 100 |  |  |  |  |  |  |  | 
| 101 |  |  |  |  |  |  |  | 
| 102 |  |  |  |  |  |  | =head1 AUTHOR | 
| 103 |  |  |  |  |  |  |  | 
| 104 |  |  |  |  |  |  | Elliot Shank <perl@galumph.com> | 
| 105 |  |  |  |  |  |  |  | 
| 106 |  |  |  |  |  |  | =head1 COPYRIGHT | 
| 107 |  |  |  |  |  |  |  | 
| 108 |  |  |  |  |  |  | Copyright (c) 2007-2011 Elliot Shank. | 
| 109 |  |  |  |  |  |  |  | 
| 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. | 
| 113 |  |  |  |  |  |  |  | 
| 114 |  |  |  |  |  |  | =cut | 
| 115 |  |  |  |  |  |  |  | 
| 116 |  |  |  |  |  |  | # Local Variables: | 
| 117 |  |  |  |  |  |  | #   mode: cperl | 
| 118 |  |  |  |  |  |  | #   cperl-indent-level: 4 | 
| 119 |  |  |  |  |  |  | #   fill-column: 78 | 
| 120 |  |  |  |  |  |  | #   indent-tabs-mode: nil | 
| 121 |  |  |  |  |  |  | #   c-indentation-style: bsd | 
| 122 |  |  |  |  |  |  | # End: | 
| 123 |  |  |  |  |  |  | # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround : |