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.



151
152
153
154
# File 'lib/graphiti/errors.rb', line 151

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

Instance Method Details

#messageObject



156
157
158
159
160
# File 'lib/graphiti/errors.rb', line 156

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