Exception: Graphiti::Errors::ExtraAttributeNotFound

Inherits:
Base
  • Object
show all
Defined in:
lib/graphiti/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(resource_class, name) ⇒ ExtraAttributeNotFound

Returns a new instance of ExtraAttributeNotFound.



170
171
172
173
# File 'lib/graphiti/errors.rb', line 170

def initialize(resource_class, name)
  @resource_class = resource_class
  @name = name
end

Instance Method Details

#messageObject



175
176
177
178
179
# File 'lib/graphiti/errors.rb', line 175

def message
  <<~MSG
    #{@resource_class.name}: called .on_extra_attribute #{@name.inspect}, but extra attribute #{@name.inspect} does not exist!
  MSG
end