Exception: CFoundry::InvalidTarget

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target) ⇒ InvalidTarget

Returns a new instance of InvalidTarget.



27
28
29
# File 'lib/cfoundry/errors.rb', line 27

def initialize(target)
  @target = target
end

Instance Attribute Details

#targetObject (readonly)

Returns the value of attribute target.



25
26
27
# File 'lib/cfoundry/errors.rb', line 25

def target
  @target
end

Instance Method Details

#to_sObject



31
32
33
# File 'lib/cfoundry/errors.rb', line 31

def to_s
  "Invalid target URI: #{@target}"
end