File Coverage

blib/lib/ResourcePool/Command/NoFailoverException.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition 1 3 33.3
subroutine 5 5 100.0
pod 2 2 100.0
total 25 27 92.5


line stmt bran cond sub pod time code
1             #*********************************************************************
2             #*** ResourcePool::Command::NoFailoverException
3             #*** Copyright (c) 2002,2003 by Markus Winand
4             #*** $Id: NoFailoverException.pm,v 1.7 2013-04-16 10:14:44 mws Exp $
5             #*********************************************************************
6             package ResourcePool::Command::NoFailoverException;
7              
8 2     2   1072 use strict;
  2         3  
  2         66  
9 2     2   8 use vars qw($VERSION);
  2         3  
  2         64  
10 2     2   11 use ResourcePool::Command::Exception;
  2         2  
  2         239  
11             $VERSION = "1.0107";
12              
13             sub new($;$) {
14 4     4 1 1036 my $proto = shift;
15 4   33     30 my $class = ref($proto) || $proto;
16 4         10 my $self = {};
17 4         12 bless($self, $class);
18 4         16 $self->{exception} = shift;
19 4         16 return $self;
20             }
21              
22             sub rootException($) {
23 12     12 1 30 my ($self) = @_;
24 12         46 return ResourcePool::Command::Exception::rootException($self);
25             }
26              
27             1;
28