Exception: Graphiti::Errors::TypeNotFound

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

Instance Method Summary collapse

Constructor Details

#initialize(resource, attribute, type) ⇒ TypeNotFound



552
553
554
555
556
# File 'lib/graphiti/errors.rb', line 552

def initialize(resource, attribute, type)
  @resource = resource
  @attribute = attribute
  @type = type
end

Instance Method Details

#messageObject



558
559
560
561
562
563
564
# File 'lib/graphiti/errors.rb', line 558

def message
  "    Could not find type \#{@type.inspect}! This was specified on attribute \#{@attribute.inspect} within resource \#{@resource.name}\n\n    Valid types are: \#{Graphiti::Types.map.keys.inspect}\n  MSG\nend\n"