Exception: Shells::NonZeroExitCode
- Inherits:
-
ShellError
- Object
- StandardError
- ShellError
- Shells::NonZeroExitCode
- Defined in:
- lib/shells/errors.rb
Overview
An error raised when a command exits with a non-zero status.
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
The exit code triggering the error.
Instance Method Summary collapse
-
#initialize(exit_code) ⇒ NonZeroExitCode
constructor
Creates a new non-zero exit code error.
-
#message ⇒ Object
:nodoc:.
Constructor Details
#initialize(exit_code) ⇒ NonZeroExitCode
Creates a new non-zero exit code error.
29 30 31 |
# File 'lib/shells/errors.rb', line 29 def initialize(exit_code) self.exit_code = exit_code end |
Instance Attribute Details
#exit_code ⇒ Object
The exit code triggering the error.
25 26 27 |
# File 'lib/shells/errors.rb', line 25 def exit_code @exit_code end |
Instance Method Details
#message ⇒ Object
:nodoc:
33 34 35 |
# File 'lib/shells/errors.rb', line 33 def # :nodoc: "The exit code was #{exit_code}." end |