Exception: VcsClient::VcsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/vcs_client.rb

Direct Known Subclasses

CheckinFailed, CheckoutFailed, NoRadius

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val) ⇒ VcsError

Returns a new instance of VcsError.



61
62
63
# File 'lib/vcs_client.rb', line 61

def initialize(val)
  @response = val
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



59
60
61
# File 'lib/vcs_client.rb', line 59

def response
  @response
end

Instance Method Details

#inspectObject



69
70
71
# File 'lib/vcs_client.rb', line 69

def inspect
  self.to_s
end

#to_sObject



65
66
67
# File 'lib/vcs_client.rb', line 65

def to_s
  "#{self.class.to_s}: #{self.response}"
end