Exception: JsonRspecMatchMaker::MatchDefinitionNotFound Private

Inherits:
StandardError
  • Object
show all
Defined in:
lib/json_rspec_match_maker/base.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Error raised when the child class has failed to set @match_definition

Instance Method Summary collapse

Constructor Details

#initialize(class_name) ⇒ MatchDefinitionNotFound

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Create an error message for a child class

Parameters:

  • class_name (String)

    the name of the matcher class



7
8
9
# File 'lib/json_rspec_match_maker/base.rb', line 7

def initialize(class_name)
  super("Expected instance variable @match_defintion to be set for #{class_name}")
end