Exception: Inferno::Exceptions::UnknownAttributeException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Inferno::Exceptions::UnknownAttributeException
- Defined in:
- lib/inferno/exceptions.rb
Instance Method Summary collapse
-
#initialize(attributes, klass) ⇒ UnknownAttributeException
constructor
A new instance of UnknownAttributeException.
Constructor Details
#initialize(attributes, klass) ⇒ UnknownAttributeException
Returns a new instance of UnknownAttributeException.
99 100 101 102 |
# File 'lib/inferno/exceptions.rb', line 99 def initialize(attributes, klass) attributes_string = attributes.map { |attribute| "'#{attribute}'" }.join(', ') super("Unknown attributes for #{klass.name}: #{attributes_string}") end |