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, setup

Constructor Details

#initialize(message) ⇒ TargetRefused

Message varies as this represents various network errors.



52
53
54
# File 'lib/cfoundry/errors.rb', line 52

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Error message.



49
50
51
# File 'lib/cfoundry/errors.rb', line 49

def message
  @message
end

Instance Method Details

#to_sObject

:nodoc:



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

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