Exception: CFoundry::TargetRefused

Inherits:
APIError
  • Object
show all
Defined in:
lib/cfoundry/errors.rb

Overview

Lower-level exception for when we cannot connect to the target.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from APIError

#description, #error_code

Constructor Details

#initialize(message) ⇒ TargetRefused

Message varies as this represents various network errors.



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

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Error message.



56
57
58
# File 'lib/cfoundry/errors.rb', line 56

def message
  @message
end

Instance Method Details

#to_sObject

Exception message.



64
65
66
# File 'lib/cfoundry/errors.rb', line 64

def to_s
  "#{description} (#{@message})"
end