Exception: Conrad::ForbiddenKey
- 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
-
#initialize(key) ⇒ ForbiddenKey
constructor
A new instance of ForbiddenKey.
-
#to_s ⇒ Object
:nodoc:.
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_s ⇒ Object
: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 |