Exception: FlatMap::OpenMapper::NoTargetError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/flat_map/open_mapper.rb

Overview

Raised when mapper is initialized with no target defined

Instance Method Summary collapse

Constructor Details

#initialize(mapper_class) ⇒ NoTargetError

Initializes exception with a name of mapper class.

Parameters:

  • mapper_class (Class)

    class of mapper being initialized



10
11
12
# File 'lib/flat_map/open_mapper.rb', line 10

def initialize(mapper_class)
  super("Target object is required to initialize #{mapper_class.name}")
end