Exception: CFoundry::Mismatch

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

Instance Method Summary collapse

Constructor Details

#initialize(expected, got) ⇒ Mismatch

Returns a new instance of Mismatch.



8
9
10
11
# File 'lib/cfoundry/errors.rb', line 8

def initialize(expected, got)
  @expected = expected
  @got = got
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/cfoundry/errors.rb', line 13

def to_s
  "Invalid value type; expected #{@expected.inspect}, got #{@got.inspect}"
end