Exception: PipeLineDealer::Error::InvalidAttributeName

Inherits:
InvalidAttribute show all
Defined in:
lib/pipe_line_dealer/error/invalid_attribute.rb

Instance Attribute Summary

Attributes inherited from InvalidAttribute

#attribute_name

Attributes inherited from PipeLineDealer::Error

#message

Instance Method Summary collapse

Methods inherited from PipeLineDealer::Error

#to_s

Constructor Details

#initialize(klass, attribute_name) ⇒ InvalidAttributeName

Returns a new instance of InvalidAttributeName.



13
14
15
16
# File 'lib/pipe_line_dealer/error/invalid_attribute.rb', line 13

def initialize(klass, attribute_name)
  super
  @message = "The attribute #{attribute_name.inspect} is not known by #{klass.inspect}!"
end