line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Git::Wrapper::Exception; |
2
|
|
|
|
|
|
|
# ABSTRACT: Exception class for Git::Wrapper |
3
|
|
|
|
|
|
|
$Git::Wrapper::Exception::VERSION = '0.047_090'; # TRIAL |
4
|
|
|
|
|
|
|
|
5
|
5
|
|
|
5
|
|
1285
|
$Git::Wrapper::Exception::VERSION = '0.047090';use 5.006; |
|
5
|
|
|
|
|
21
|
|
6
|
5
|
|
|
5
|
|
32
|
use strict; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
128
|
|
7
|
5
|
|
|
5
|
|
36
|
use warnings; |
|
5
|
|
|
|
|
19
|
|
|
5
|
|
|
|
|
435
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
1
|
12
|
sub new { my $class = shift; bless { @_ } => $class } |
|
2
|
|
|
|
|
102
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
use overload ( |
12
|
5
|
|
|
|
|
41
|
q("") => '_stringify', |
13
|
|
|
|
|
|
|
fallback => 1, |
14
|
5
|
|
|
5
|
|
1545
|
); |
|
5
|
|
|
|
|
1325
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub _stringify { |
17
|
1
|
|
|
1
|
|
425
|
my ($self) = @_; |
18
|
1
|
|
|
|
|
14
|
my $error = $self->error; |
19
|
1
|
50
|
|
|
|
16
|
return $error if $error =~ /\S/; |
20
|
0
|
|
|
|
|
0
|
return "git exited non-zero but had no output to stderr"; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
1
|
0
|
sub output { join "", map { "$_\n" } @{ shift->{output} } } |
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
24
|
|
|
|
|
|
|
|
25
|
1
|
|
|
1
|
1
|
9
|
sub error { join "", map { "$_\n" } @{ shift->{error} } } |
|
3
|
|
|
|
|
16
|
|
|
1
|
|
|
|
|
10
|
|
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
0
|
1
|
|
sub status { shift->{status} } |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |