Modified source files and compiled any and armel versions of packages
[pkg-perl] / deb-src / libperl-critic-perl / libperl-critic-perl-1.088 / lib / Perl / Critic / Exception / Parse.pm
1 ##############################################################################
2 #      $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/lib/Perl/Critic/Exception/Parse.pm $
3 #     $Date: 2008-07-03 10:19:10 -0500 (Thu, 03 Jul 2008) $
4 #   $Author: clonezone $
5 # $Revision: 2489 $
6 ##############################################################################
7
8 package Perl::Critic::Exception::Parse;
9
10 use 5.006001;
11 use strict;
12 use warnings;
13
14 use English qw< -no_match_vars >;
15 use Carp qw< confess >;
16 use Readonly;
17
18 use Perl::Critic::Utils qw< :characters >;
19
20 our $VERSION = '1.088';
21
22 #-----------------------------------------------------------------------------
23
24 use Exception::Class (
25     'Perl::Critic::Exception::Parse' => {
26         isa         => 'Perl::Critic::Exception',
27         description => 'A problem parsing source code.',
28         fields      => [ qw< file_name > ],
29         alias       => 'throw_parse',
30     },
31 );
32
33 #-----------------------------------------------------------------------------
34
35 Readonly::Array our @EXPORT_OK => qw< throw_parse >;
36
37 #-----------------------------------------------------------------------------
38
39 1;
40
41 #-----------------------------------------------------------------------------
42
43 __END__
44
45 =pod
46
47 =for stopwords
48
49 =head1 NAME
50
51 Perl::Critic::Exception::Parse - The code doesn't look like code.
52
53 =head1 DESCRIPTION
54
55 There was a problem with PPI parsing source code.
56
57
58 =head1 METHODS
59
60 =over
61
62 =item C<file_name()>
63
64 Returns the name of the file that the problem was found with, if available.
65
66
67 =back
68
69
70 =head1 AUTHOR
71
72 Elliot Shank <perl@galumph.com>
73
74 =head1 COPYRIGHT
75
76 Copyright (c) 2008 Elliot Shank.  All rights reserved.
77
78 This program is free software; you can redistribute it and/or modify
79 it under the same terms as Perl itself.  The full text of this license
80 can be found in the LICENSE file included with this module.
81
82 =cut
83
84 ##############################################################################
85 # Local Variables:
86 #   mode: cperl
87 #   cperl-indent-level: 4
88 #   fill-column: 78
89 #   indent-tabs-mode: nil
90 #   c-indentation-style: bsd
91 # End:
92 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :