line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Declare our package |
2
|
|
|
|
|
|
|
package Games::AssaultCube::Log::Line::FatalError; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
# import the Moose stuff |
5
|
1
|
|
|
1
|
|
2488
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# Initialize our version |
8
|
|
|
|
|
|
|
use vars qw( $VERSION ); |
9
|
|
|
|
|
|
|
$VERSION = '0.04'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
extends 'Games::AssaultCube::Log::Line::Base'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# TODO improve validation for everything here, ha! |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has 'error' => ( |
16
|
|
|
|
|
|
|
isa => 'Str', |
17
|
|
|
|
|
|
|
is => 'ro', |
18
|
|
|
|
|
|
|
required => 1, |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
has 'tostr' => ( |
22
|
|
|
|
|
|
|
isa => 'Str', |
23
|
|
|
|
|
|
|
is => 'ro', |
24
|
|
|
|
|
|
|
lazy => 1, |
25
|
|
|
|
|
|
|
default => sub { |
26
|
|
|
|
|
|
|
my $self = shift; |
27
|
|
|
|
|
|
|
return "Fatal error: " . $self->error; |
28
|
|
|
|
|
|
|
}, |
29
|
|
|
|
|
|
|
); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
no Moose; |
32
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
__END__ |
36
|
|
|
|
|
|
|
=head1 NAME |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Games::AssaultCube::Log::Line::FatalError - Describes the FatalError event in a log line |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 ABSTRACT |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Describes the FatalError event in a log line |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 DESCRIPTION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
This module holds the "FatalError" event data from a log line. Normally, you would not use this class directly |
47
|
|
|
|
|
|
|
but via the L<Games::AssaultCube::Log::Line> class. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This line is emitted when the AC server crashes with a fatal error. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head2 Attributes |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Those attributes hold information about the event. As this class extends the L<Games::AssaultCube::Log::Line::Base> |
54
|
|
|
|
|
|
|
class, you can also use it's attributes too. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head3 error |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
The fatal error string |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 AUTHOR |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Apocalypse E<lt>apocal@cpan.orgE<gt> |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Props goes to the BS clan for the support! |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This project is sponsored by L<http://cubestats.net> |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Copyright 2009 by Apocalypse |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
73
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |