line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Perl::ToPerl6::Exception::Fatal; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
754
|
use 5.006001; |
|
1
|
|
|
|
|
4
|
|
4
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
49
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
#----------------------------------------------------------------------------- |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
use Exception::Class ( |
10
|
1
|
|
|
|
|
7
|
'Perl::ToPerl6::Exception::Fatal' => { |
11
|
|
|
|
|
|
|
isa => 'Perl::ToPerl6::Exception', |
12
|
|
|
|
|
|
|
description => |
13
|
|
|
|
|
|
|
'A problem that should cause Perl::ToPerl6 to stop running.', |
14
|
|
|
|
|
|
|
}, |
15
|
1
|
|
|
1
|
|
4
|
); |
|
1
|
|
|
|
|
2
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
#----------------------------------------------------------------------------- |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub new { |
20
|
3
|
|
|
3
|
1
|
10840
|
my ($class, @args) = @_; |
21
|
3
|
|
|
|
|
15
|
my $self = $class->SUPER::new(@args); |
22
|
|
|
|
|
|
|
|
23
|
3
|
|
|
|
|
912
|
$self->show_trace(1); |
24
|
|
|
|
|
|
|
|
25
|
3
|
|
|
|
|
647
|
return $self; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
#----------------------------------------------------------------------------- |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub full_message { |
31
|
0
|
|
|
0
|
1
|
|
my ( $self ) = @_; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
return |
34
|
0
|
|
|
|
|
|
$self->short_class_name() |
35
|
|
|
|
|
|
|
. q{: } |
36
|
|
|
|
|
|
|
. $self->description() |
37
|
|
|
|
|
|
|
. "\n\n" |
38
|
|
|
|
|
|
|
. $self->message() |
39
|
|
|
|
|
|
|
. "\n\n" |
40
|
|
|
|
|
|
|
. gmtime $self->time() |
41
|
|
|
|
|
|
|
. "\n\n"; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
#----------------------------------------------------------------------------- |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=pod |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=for stopwords |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 NAME |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Perl::ToPerl6::Exception::Fatal - A problem that should cause L<Perl::ToPerl6|Perl::ToPerl6> to stop running. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 DESCRIPTION |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Something went wrong and processing should not continue. You should |
62
|
|
|
|
|
|
|
never specifically look for this exception or one of its subclasses. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Note: the constructor invokes L<Exception::Class/"show_trace"> to |
65
|
|
|
|
|
|
|
force stack-traces to be included in the standard stringification. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This is an abstract class. It should never be instantiated. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 INTERFACE SUPPORT |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This is considered to be a public class. Any changes to its interface |
73
|
|
|
|
|
|
|
will go through a deprecation cycle. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 METHODS |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=over |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=item C<full_message()> |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Overrides L<Exception::Class/"full_message"> to include extra |
83
|
|
|
|
|
|
|
information. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=back |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 AUTHOR |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Elliot Shank <perl@galumph.com> |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 COPYRIGHT |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Copyright (c) 2007-2011 Elliot Shank. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify |
98
|
|
|
|
|
|
|
it under the same terms as Perl itself. The full text of this license |
99
|
|
|
|
|
|
|
can be found in the LICENSE file included with this module. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=cut |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
# Local Variables: |
104
|
|
|
|
|
|
|
# mode: cperl |
105
|
|
|
|
|
|
|
# cperl-indent-level: 4 |
106
|
|
|
|
|
|
|
# fill-column: 78 |
107
|
|
|
|
|
|
|
# indent-tabs-mode: nil |
108
|
|
|
|
|
|
|
# c-indentation-style: bsd |
109
|
|
|
|
|
|
|
# End: |
110
|
|
|
|
|
|
|
# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround : |