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.
30 31 32 33 34 35 |
# File 'lib/synco/scope.rb', line 30 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.
37 38 39 |
# File 'lib/synco/scope.rb', line 37 def command @command end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
38 39 40 |
# File 'lib/synco/scope.rb', line 38 def status @status end |