Exception: Otoroshi::Collection::TypeError
- Defined in:
- lib/otoroshi/exceptions.rb
Overview
Manages errors raised when at least one element of the collection is not an instance of the expected class
Instance Method Summary collapse
-
#initialize(property, type) ⇒ TypeError
constructor
A new instance of TypeError.
Constructor Details
#initialize(property, type) ⇒ TypeError
Returns a new instance of TypeError.
60 61 62 |
# File 'lib/otoroshi/exceptions.rb', line 60 def initialize(property, type) super ":#{property} contains elements that are not instances of #{type}" end |