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.



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