Exception: Dogviz::DuplicateLookupError

Inherits:
LookupError
  • Object
show all
Defined in:
lib/dogviz/duplicate_lookup_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(context, name) ⇒ DuplicateLookupError

Returns a new instance of DuplicateLookupError.



3
4
5
# File 'lib/dogviz/duplicate_lookup_error.rb', line 3

def initialize(context, name)
  super context, "More than one object registered of name '#{name}' - you'll need to search in a narrower context"
end