Exception: Divvy::NonZeroExitCode
- Inherits:
-
Exception
- Object
- Exception
- Divvy::NonZeroExitCode
- Defined in:
- lib/divvy/server.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
Instance Method Summary collapse
-
#initialize(command, exit_code) ⇒ NonZeroExitCode
constructor
A new instance of NonZeroExitCode.
Constructor Details
#initialize(command, exit_code) ⇒ NonZeroExitCode
69 70 71 72 73 |
# File 'lib/divvy/server.rb', line 69 def initialize(command, exit_code) super("Non-zero exit code: #{exit_code} for #{command}") @command = command @exit_code = exit_code end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
75 76 77 |
# File 'lib/divvy/server.rb', line 75 def command @command end |
#exit_code ⇒ Object
Returns the value of attribute exit_code.
75 76 77 |
# File 'lib/divvy/server.rb', line 75 def exit_code @exit_code end |