File Coverage

blib/lib/WebService/Google/Closure/Type/Error.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package WebService::Google::Closure::Type::Error;
2              
3 3     3   19 use Moose;
  3         8  
  3         29  
4 3     3   20308 use MooseX::Types::Moose qw( Str Int );
  3         7  
  3         42  
5              
6             has type => (
7             is => 'ro',
8             isa => Str,
9             required => 1,
10             );
11              
12             has file => (
13             is => 'ro',
14             isa => Str,
15             required => 1,
16             );
17              
18             has lineno => (
19             is => 'ro',
20             isa => Int,
21             required => 1,
22             );
23              
24             has charno => (
25             is => 'ro',
26             isa => Int,
27             required => 1,
28             );
29              
30             has line => (
31             is => 'ro',
32             isa => Str,
33             required => 1,
34             );
35              
36             has text => (
37             is => 'ro',
38             isa => Str,
39             init_arg => 'error',
40             required => 1,
41             );
42              
43 3     3   17636 no Moose;
  3         11  
  3         22  
44             __PACKAGE__->meta->make_immutable;
45             1;
46              
47             __END__
48              
49             =head1 NAME
50              
51             WebService::Google::Closure::Type::Error - Error generated in compilation
52              
53             =head1 ATTRIBUTES
54              
55             =head2 $error->type
56              
57             Returns a string with the compiled javascript code.
58              
59             See L<http://code.google.com/closure/compiler/docs/api-ref.html#errors> for further information.
60              
61             =head2 $error->file
62              
63             Filename of the file that caused the error
64              
65             =head2 $error->lineno
66              
67             Line number that caused the error
68              
69             =head2 $error->charno
70              
71             Char number that caused the error
72              
73             =head2 $error->text
74              
75             The error text
76              
77             =head1 LICENSE AND COPYRIGHT
78              
79             Copyright 2010-2011 Magnus Erixzon.
80              
81             This program is free software; you can redistribute it and/or modify it
82             under the terms of either: the GNU General Public License as published
83             by the Free Software Foundation; or the Artistic License.
84              
85             See http://dev.perl.org/licenses/ for more information.
86              
87             =cut