Exception: Inferno::Exceptions::UnknownAttributeException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/inferno/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes, klass) ⇒ UnknownAttributeException

Returns a new instance of UnknownAttributeException.



80
81
82
83
# File 'lib/inferno/exceptions.rb', line 80

def initialize(attributes, klass)
  attributes_string = attributes.map { |attribute| "'#{attribute}'" }.join(', ')
  super("Unknown attributes for #{klass.name}: #{attributes_string}")
end