Exception: EasyJSONMatcher::CoercionError

Inherits:
EasyJSONMatcherError show all
Defined in:
lib/easy_json_matcher/coercion_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(invalid_string:) ⇒ CoercionError

Returns a new instance of CoercionError.



6
7
8
# File 'lib/easy_json_matcher/coercion_error.rb', line 6

def initialize(invalid_string:)
  super "#{invalid_string} is not a valid json string"
end