Exception: Conrad::ForbiddenValue
- Defined in:
- lib/conrad/errors.rb
Overview
Error raised when the value of an event attribute is not of one of the allowed types
Instance Method Summary collapse
-
#initialize(key, value) ⇒ ForbiddenValue
constructor
A new instance of ForbiddenValue.
-
#to_s ⇒ Object
:nodoc:.
Constructor Details
#initialize(key, value) ⇒ ForbiddenValue
Returns a new instance of ForbiddenValue.
24 25 26 27 |
# File 'lib/conrad/errors.rb', line 24 def initialize(key, value) @key = key @value = value end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
30 31 32 |
# File 'lib/conrad/errors.rb', line 30 def to_s "Key of #{@key} provided invalid value type of #{@value.class}" end |