File Coverage

blib/lib/Reflexive/ZmqSocket/ZmqError.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1             package Reflexive::ZmqSocket::ZmqError;
2             {
3             $Reflexive::ZmqSocket::ZmqError::VERSION = '1.130710';
4             }
5              
6             #ABSTRACT: The event emitted when errors occur
7              
8 1     1   1818 use Moose;
  0            
  0            
9              
10             extends 'Reflex::Event';
11              
12              
13             has errnum => (
14             is => 'ro',
15             isa => 'Int',
16             required => 1,
17             );
18              
19              
20             has errstr => (
21             is => 'ro',
22             isa => 'Str',
23             required => 1,
24             );
25              
26              
27             has errfun => (
28             is => 'ro',
29             isa => 'Str',
30             required => 1,
31             );
32              
33             __PACKAGE__->meta->make_immutable();
34              
35             1;
36              
37              
38             =pod
39              
40             =head1 NAME
41              
42             Reflexive::ZmqSocket::ZmqError - The event emitted when errors occur
43              
44             =head1 VERSION
45              
46             version 1.130710
47              
48             =head1 DESCRIPTION
49              
50             Reflexive::ZmqSocket::ZmqError is an event emitted when bad things happen to sockets.
51              
52             =head1 PUBLIC_ATTRIBUTES
53              
54             =head2 errnum
55              
56             is: ro, isa: Int
57              
58             This is the number version of the error ($!+0)
59              
60             =head2 errstr
61              
62             is: ro, isa: Str
63              
64             This is the string version of the error ("$!")
65              
66             =head2 errfun
67              
68             is: ro, isa: Str
69              
70             This is the function that is the source of the error
71              
72             =head1 AUTHORS
73              
74             =over 4
75              
76             =item *
77              
78             Nicholas R. Perez <nperez@cpan.org>
79              
80             =item *
81              
82             Steffen Mueller <smueller@cpan.org>
83              
84             =back
85              
86             =head1 COPYRIGHT AND LICENSE
87              
88             This software is copyright (c) 2012 by Nicholas R. Perez <nperez@cpan.org>.
89              
90             This is free software; you can redistribute it and/or modify it under
91             the same terms as the Perl 5 programming language system itself.
92              
93             =cut
94              
95              
96             __END__
97