Exception: CFoundry::TargetRefused
- Defined in:
- lib/cfoundry/errors.rb
Overview
Lower-level exception for when we cannot connect to the target.
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Error message.
Instance Method Summary collapse
-
#initialize(message) ⇒ TargetRefused
constructor
Message varies as this represents various network errors.
-
#to_s ⇒ Object
Exception message.
Methods inherited from APIError
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 = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Error message.
56 57 58 |
# File 'lib/cfoundry/errors.rb', line 56 def @message end |
Instance Method Details
#to_s ⇒ Object
Exception message.
64 65 66 |
# File 'lib/cfoundry/errors.rb', line 64 def to_s "#{description} (#{@message})" end |