Footprintless::CommandRunner::Exception

- NAME
- VERSION
- DESCRIPTION
- CONSTRUCTORS
  - new($command, $exit_code, $message, $stderr)
- ATTRIBUTES
  - get_command()
  - get_exit_code()
  - get_message()
  - get_stderr()
  - get_trace()
- METHODS
  - exit()
  - to_string()
- AUTHOR
- COPYRIGHT AND LICENSE
- SEE ALSO

# NAME

Footprintless::CommandRunner::Exception - A base exception class for Footprintless::CommandRunner

# VERSION

version 1.01

# DESCRIPTION

An exception used by `Footprintless::CommandRunner` to propagate information related to the reason a command failed.

# CONSTRUCTORS

## new($command, $exit_code, $message, $stderr)

Creates a new `Footprintless::CommandRunner::Exception` with the supplied information.

# ATTRIBUTES

## get_command()

Returns the command.

## get_exit_code()

Returns the exit code.

## get_message()

Returns the message.

## get_stderr()

Returns the stderr.

## get_trace()

Returns the stack trace when the command runner `die`d.

# METHODS

## exit()

Prints diagnostic information to `STDERR` then exits with exit code.

## to_string()

Returns a string representation of this exception.

# AUTHOR

Lucas Theisen <lucastheisen@pastdev.com>

# COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Lucas Theisen.

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

# SEE ALSO

Please see those modules/websites for more information related to this module.

- Footprintless
- Footprintless::CommandRunner
- Footprintless