Git::Wrapper::Exception(3pm) User Contributed Perl Documentation Git::Wrapper::Exception(3pm)

Git::Wrapper::Exception - Exception class for Git::Wrapper

version 0.048

A new error object may be generated and thrown as follows:

  die Git::Wrapper::Exception->new(
    output => \@out,   # STDOUT
    error  => \@err,   # STERR
    status => $? >> 8, # git process exist status
  );

The standard constructor for this class.

Returns the full error message reported by the resulting git command sent to "STDERR".

Returns the full output generated by the git command that is sent to "STDOUT".

Returns the non-zero exit code reported by git on error.

In particular, see the section on Error handling.

The code for this module is maintained on GitHub, at <https://github.com/genehack/Git-Wrapper>. If you have a patch, feel free to fork the repository and submit a pull request. If you find a bug, please open an issue on the project at GitHub. (We also watch the <http://rt.cpan.org> queue for Git::Wrapper, so feel free to use that bug reporting system if you prefer)

This software is copyright (c) 2014 by Hans Dieter Pearcey.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2022-12-11 perl v5.36.0