Exception: Graphiti::Errors::InvalidInclude

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

Instance Method Summary collapse

Constructor Details

#initialize(resource, relationship) ⇒ InvalidInclude

Returns a new instance of InvalidInclude.



743
744
745
746
# File 'lib/graphiti/errors.rb', line 743

def initialize(resource, relationship)
  @resource = resource
  @relationship = relationship
end

Instance Method Details

#messageObject



748
749
750
# File 'lib/graphiti/errors.rb', line 748

def message
  "#{@resource.class.name}: The requested included relationship \"#{@relationship}\" is not supported."
end