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.048_090'; # TRIAL |
4
|
|
|
|
|
|
|
|
5
|
7
|
|
|
7
|
|
707
|
$Git::Wrapper::Exception::VERSION = '0.048090';use 5.006; |
|
7
|
|
|
|
|
18
|
|
6
|
7
|
|
|
7
|
|
28
|
use strict; |
|
7
|
|
|
|
|
9
|
|
|
7
|
|
|
|
|
107
|
|
7
|
7
|
|
|
7
|
|
24
|
use warnings; |
|
7
|
|
|
|
|
7
|
|
|
7
|
|
|
|
|
337
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
1
|
5
|
sub new { my $class = shift; bless { @_ } => $class } |
|
2
|
|
|
|
|
76
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
use overload ( |
12
|
7
|
|
|
|
|
33
|
q("") => '_stringify', |
13
|
|
|
|
|
|
|
fallback => 1, |
14
|
7
|
|
|
7
|
|
911
|
); |
|
7
|
|
|
|
|
718
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub _stringify { |
17
|
1
|
|
|
1
|
|
323
|
my ($self) = @_; |
18
|
1
|
|
|
|
|
16
|
my $error = $self->error; |
19
|
1
|
50
|
|
|
|
21
|
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
|
6
|
sub error { join "", map { "$_\n" } @{ shift->{error} } } |
|
3
|
|
|
|
|
23
|
|
|
1
|
|
|
|
|
5
|
|
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
0
|
1
|
|
sub status { shift->{status} } |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |