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.



149
150
151
152
# File 'lib/graphiti/errors.rb', line 149

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

Instance Method Details

#messageObject



154
155
156
157
158
# File 'lib/graphiti/errors.rb', line 154

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