Exception: Graphiti::Errors::TypeNotFound
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource, attribute, type) ⇒ TypeNotFound
constructor
A new instance of TypeNotFound.
- #message ⇒ Object
Constructor Details
#initialize(resource, attribute, type) ⇒ TypeNotFound
557 558 559 560 561 |
# File 'lib/graphiti/errors.rb', line 557 def initialize(resource, attribute, type) @resource = resource @attribute = attribute @type = type end |
Instance Method Details
#message ⇒ Object
563 564 565 566 567 568 569 |
# File 'lib/graphiti/errors.rb', line 563 def " 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" |