Exception: Conrad::ForbiddenValue

Inherits:
Error
  • Object
show all
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

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_sObject

: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