Exception: GemMine::CommandError
- Defined in:
- lib/gem_mine.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(command, status, stdout, stderr) ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(command, status, stdout, stderr) ⇒ CommandError
Returns a new instance of CommandError.
17 18 19 20 21 22 23 |
# File 'lib/gem_mine.rb', line 17 def initialize(command, status, stdout, stderr) @command = command @status = status @stdout = stdout @stderr = stderr super("Command failed (#{status.exitstatus}): #{command.join(" ")}") end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
15 16 17 |
# File 'lib/gem_mine.rb', line 15 def command @command end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
15 16 17 |
# File 'lib/gem_mine.rb', line 15 def status @status end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
15 16 17 |
# File 'lib/gem_mine.rb', line 15 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
15 16 17 |
# File 'lib/gem_mine.rb', line 15 def stdout @stdout end |