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.



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

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

Instance Method Details

#to_sObject



19
20
21
# File 'lib/cfoundry/errors.rb', line 19

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