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.



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

#commandObject (readonly)

Returns the value of attribute command.



37
38
39
# File 'lib/synco/scope.rb', line 37

def command
  @command
end

#statusObject (readonly)

Returns the value of attribute status.



38
39
40
# File 'lib/synco/scope.rb', line 38

def status
  @status
end