Exception: ManBook::CommandFailedError

Inherits:
ConfigurationError show all
Defined in:
lib/manbook/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmd, msg) ⇒ CommandFailedError

Returns a new instance of CommandFailedError.



11
12
13
14
# File 'lib/manbook/errors.rb', line 11

def initialize(cmd, msg)
  super("Executing #{cmd} failed: #{msg}")
  @cmd, @msg = cmd, msg
end

Instance Attribute Details

#cmdObject (readonly)

Returns the value of attribute cmd.



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

def cmd
  @cmd
end

#msgObject (readonly)

Returns the value of attribute msg.



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

def msg
  @msg
end