| 1 | package Git::Wrapper::Exception; | ||||||||||
| 2 | # ABSTRACT: Exception class for Git::Wrapper | ||||||||||
| 3 | 5 | $Git::Wrapper::Exception::VERSION = '0.047_090'; # TRIAL | |||||||||
| 4 | |||||||||||
| 5 | 5 | ▶ | $Git::Wrapper::Exception::VERSION = '0.047090';use 5.006; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 2 | ▶ | sub new { my $class = shift; bless { @_ } => $class } | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 10 | |||||||||||
| 11 | use overload ( | ||||||||||
| 12 | 5 | q("") => '_stringify', | |||||||||
| 13 | fallback => 1, | ||||||||||
| 14 | 5 | ▶ | ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | sub _stringify { | ||||||||||
| 17 | 1 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
_stringify: called CC=2 SCAR=7.6
| |||||||||||
| 18 | 1 | my $error = $self->error; | |||||||||
| 19 | 1 | ▶ | return $error if $error =~ /\S/; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 0 | return "git exited non-zero but had no output to stderr"; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 0 | ▶ | sub output { join "", map { "$_\n" } @{ shift->{output} } } | ||||||||
|
Subroutine
output: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 24 | |||||||||||
| 25 | 1 | ▶ | sub error { join "", map { "$_\n" } @{ shift->{error} } } | ||||||||
|
Subroutine
error: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 26 | |||||||||||
| 27 | 0 | ▶ | sub status { shift->{status} } | ||||||||
|
Subroutine
status: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 28 | |||||||||||
| 29 | 5 | 1; | |||||||||
| 30 | |||||||||||
| 31 | __END__ | ||||||||||