Exception: Synco::CommandFailure
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Synco::CommandFailure
- Defined in:
- lib/synco/scope.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(command, status) ⇒ CommandFailure
constructor
A new instance of CommandFailure.
Constructor Details
#initialize(command, status) ⇒ CommandFailure
Returns a new instance of CommandFailure.
15 16 17 18 19 20 |
# File 'lib/synco/scope.rb', line 15 def initialize(command, status) @command = command @status = status super "Command #{command.inspect} failed: #{status}!" end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
22 23 24 |
# File 'lib/synco/scope.rb', line 22 def command @command end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
23 24 25 |
# File 'lib/synco/scope.rb', line 23 def status @status end |