Exception: Rus3::WrongTypeError

Inherits:
Error
  • Object
show all
Defined in:
lib/rus3/error.rb

Constant Summary

Constants inherited from Error

Error::A2L_MAP

Constants included from EmptyList

EmptyList::EMPTY_LIST

Instance Method Summary collapse

Methods inherited from Error

#smart_error_value

Methods included from EmptyList

#null?

Constructor Details

#initialize(obj, expected) ⇒ WrongTypeError

Returns a new instance of WrongTypeError.



122
123
124
125
# File 'lib/rus3/error.rb', line 122

def initialize(obj, expected)
  emsg = EMSG[:wrong_type] % [obj, expected]
  super(emsg)
end