Exception: Shep::Error::Type
- Inherits:
-
Caller
- Object
- RuntimeError
- Shep::Error
- Caller
- Shep::Error::Type
- Defined in:
- lib/shep/exceptions.rb
Overview
Error caused by assigning a value of the wrong type to an
Entity
field.
Instance Method Summary collapse
-
#initialize(boxdesc, got, *want) ⇒ Type
constructor
A new instance of Type.
Constructor Details
#initialize(boxdesc, got, *want) ⇒ Type
Returns a new instance of Type.
24 25 26 |
# File 'lib/shep/exceptions.rb', line 24 def initialize(boxdesc, got, *want) super("#{boxdesc} expects #{want.join(',')}; got #{got}") end |