Exception: Divvy::NonZeroExitCode

Inherits:
Exception
  • Object
show all
Defined in:
lib/divvy/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject

Returns the value of attribute command.



75
76
77
# File 'lib/divvy/server.rb', line 75

def command
  @command
end

#exit_codeObject

Returns the value of attribute exit_code.



75
76
77
# File 'lib/divvy/server.rb', line 75

def exit_code
  @exit_code
end