line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Jmespath::JMESPathTypeException; |
2
|
2
|
|
|
2
|
|
7
|
use Moose; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
9
|
|
3
|
|
|
|
|
|
|
with 'Throwable'; |
4
|
|
|
|
|
|
|
extends 'Jmespath::JMESPathException'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has function_name => ( is => 'ro' ); |
7
|
|
|
|
|
|
|
has current_value => ( is => 'ro' ); |
8
|
|
|
|
|
|
|
has actual_type => ( is => 'ro' ); |
9
|
|
|
|
|
|
|
has expected_types => ( is => 'ro' ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub to_string { |
12
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
return 'In function ' . |
15
|
|
|
|
|
|
|
$self->{function_name} . '(), invalid type for value: ' . |
16
|
|
|
|
|
|
|
$self->{current_value} . ', expected one of: ' . |
17
|
|
|
|
|
|
|
$self->{expected_types} . ', received: "' . |
18
|
0
|
|
|
|
|
|
$self->{actual_type} . '"'; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
2
|
|
|
2
|
|
8078
|
no Moose; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
7
|
|
22
|
|
|
|
|
|
|
1; |