Exception: Shep::Error::Type

Inherits:
Caller show all
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

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