Exception: Embedson::ClassTypeError

Inherits:
TypeError
  • Object
show all
Defined in:
lib/embedson/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(wrong_name, correct_name) ⇒ ClassTypeError

Returns a new instance of ClassTypeError.



4
5
6
# File 'lib/embedson/exceptions.rb', line 4

def initialize(wrong_name, correct_name)
  super("Wrong argument type #{wrong_name} (expected #{correct_name})")
end