line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JE::Object::Error::TypeError; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.064'; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
101
|
|
|
101
|
|
18562
|
use strict; |
|
101
|
|
|
|
|
138
|
|
|
101
|
|
|
|
|
3152
|
|
7
|
101
|
|
|
101
|
|
407
|
use warnings; |
|
101
|
|
|
|
|
128
|
|
|
101
|
|
|
|
|
7127
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our @ISA = 'JE::Object::Error'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
require JE::Object::Error; |
12
|
|
|
|
|
|
|
require JE::String; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 NAME |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
JE::Object::Error::TypeError - JavaScript TypeError object class |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SYNOPSIS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
use JE::Object::Error::TypeError; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# Somewhere in code called by an eval{} |
24
|
|
|
|
|
|
|
die new JE::Object::Error::TypeError $global, "(Error message here)"; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# Later: |
27
|
|
|
|
|
|
|
$@->prop('message'); # error message |
28
|
|
|
|
|
|
|
$@->prop('name'); # 'TypeError' |
29
|
|
|
|
|
|
|
"$@"; # 'TypeError: ' plus the error message |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 DESCRIPTION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
This class implements JavaScript TypeError objects for JE. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 METHODS |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
See L and L. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |
40
|
|
|
|
|
|
|
|
41
|
220
|
|
|
220
|
0
|
757
|
sub name { 'TypeError' } |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
return "a true value"; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 SEE ALSO |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=over 4 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=item L |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item L |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item L |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=item L |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=back |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=cut |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|