blib/lib/Pipeline/Error/AsyncResults.pm

filter: Statementstmt 64.7% 11 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 68.1% 15 / 22 CC 1 SCAR 2.2
CC
1
Cov
65%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Pipeline/Production.pm ↑ Summary blib/lib/Pipeline/Error/Abstract.pm »
1 package Pipeline::Error::AsyncResults;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use Error;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use base qw( Error );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 our $VERSION = "3.12";
9  
10 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
11 0 my $class = shift;
12  
13 0 my $caller = caller(1);
14 0 my $text = "asynchronous handler returned unexpected results";
15  
16 0 local $Error::Depth = $Error::Depth + 1;
17 0 local $Error::Debug = 1; # Enables storing of stacktrace
18  
19 0 $class->SUPER::new(-text => $text, @_);
20 }
21  
22 1 1;
23  
24 =head1 NAME
25  
26 Pipeline::Error::AsyncResults - exception thrown from asynchronous segments
27  
28 =head1 SYNOPSIS
29  
30 use Pipeline::Error::AsyncResults;
31  
32 throw Pipeline::Error::AsyncResults;
33  
34 =head1 DESCRIPTION
35  
36 C<Pipeline::Error::AsyncResults> inherits from C<Error> and will be thrown
37 whenever results back from asynchronous segments do not match the protocol
38 expected.
39  
40 =head1 SEE ALSO
41  
42 C<Pipeline::Segment::Async> C<Error>
43  
44 =head1 AUTHOR
45  
46 James A. Duncan <jduncan@fotango.com>
47  
48 =head1 COPYRIGHT
49  
50 Copyright 2003 Fotango Ltd. All Rights Reserved.
51  
52 This module is released under the same license as Perl itself.
53  
54 =cut
« blib/lib/Pipeline/Production.pm ↑ Summary blib/lib/Pipeline/Error/Abstract.pm »