Exception: Otoroshi::TypeError
- Defined in:
- lib/otoroshi/exceptions.rb
Overview
Manages errors raised when value 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.
14 15 16 |
# File 'lib/otoroshi/exceptions.rb', line 14 def initialize(property, type) super ":#{property} is not an instance of #{type}" end |