Exception: EasyJSONMatcher::UnknownValidationStepError

Inherits:
Error
  • Object
show all
Defined in:
lib/easy_json_matcher/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ UnknownValidationStepError

Returns a new instance of UnknownValidationStepError.



15
16
17
# File 'lib/easy_json_matcher/exceptions.rb', line 15

def initialize(type)
  super error_message(type)
end

Instance Method Details

#error_message(type) ⇒ Object



8
9
10
11
12
13
# File 'lib/easy_json_matcher/exceptions.rb', line 8

def error_message (type)
  "No validator available for #{type}, 
   you have either asked to validate a type that is not supported
   or a schema that has not been defined. If it is the 
   former, consider using a custom validator"
end