line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Jmespath::LexerException; |
2
|
3
|
|
|
3
|
|
1453
|
use Moose; |
|
3
|
|
|
|
|
878680
|
|
|
3
|
|
|
|
|
17
|
|
3
|
|
|
|
|
|
|
extends qw(Jmespath::ParseException); |
4
|
|
|
|
|
|
|
with 'Throwable'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has lexer_position => ( is => 'ro' ); |
7
|
|
|
|
|
|
|
has lexer_value => ( is => 'ro' ); |
8
|
|
|
|
|
|
|
has message => ( is => 'ro' ); |
9
|
|
|
|
|
|
|
has expression => ( is => 'rw' ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub to_string { |
12
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
13
|
0
|
|
|
|
|
|
my $underline = ( ' ' x ( $self->{ lexer_position } + 1 ) ) . '^'; |
14
|
0
|
|
|
|
|
|
return 'Bad jmespath expression: ' . $self->{message} . "\n" . $self->{ expression } . "\n" . $underline; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
3
|
|
|
3
|
|
14194
|
no Moose; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
14
|
|
18
|
|
|
|
|
|
|
1; |