Exception: Conrad::ForbiddenKey

Inherits:
Error
  • Object
show all
Defined in:
lib/conrad/errors.rb

Overview

Error raised when the key of an event attribute is not of one of the allowed types

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ ForbiddenKey

Returns a new instance of ForbiddenKey.



38
39
40
# File 'lib/conrad/errors.rb', line 38

def initialize(key)
  @key = key
end

Instance Method Details

#to_sObject

:nodoc:



43
44
45
# File 'lib/conrad/errors.rb', line 43

def to_s
  "Invalid key #{@key}. Keys must be either Strings or Symbols"
end