Exception: Synco::CommandFailure

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/synco/scope.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



22
23
24
# File 'lib/synco/scope.rb', line 22

def command
  @command
end

#statusObject (readonly)

Returns the value of attribute status.



23
24
25
# File 'lib/synco/scope.rb', line 23

def status
  @status
end