Exception: Scallop::Errors::CommandFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/scallop/errors.rb

Overview

Error representing command failure.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, result) ⇒ CommandFailed


9
10
11
12
# File 'lib/scallop/errors.rb', line 9

def initialize(message, result)
  @result = result
  super(message)
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result


7
8
9
# File 'lib/scallop/errors.rb', line 7

def result
  @result
end