Exception: ManBook::CommandFailedError
- Inherits:
-
ConfigurationError
- Object
- StandardError
- ConfigurationError
- ManBook::CommandFailedError
- Defined in:
- lib/manbook/errors.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(cmd, msg) ⇒ CommandFailedError
constructor
A new instance of CommandFailedError.
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
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
9 10 11 |
# File 'lib/manbook/errors.rb', line 9 def cmd @cmd end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
9 10 11 |
# File 'lib/manbook/errors.rb', line 9 def msg @msg end |