Exception: Graphiti::Errors::SideloadConfig

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

Instance Method Summary collapse

Constructor Details

#initialize(name, parent_resource_class, message) ⇒ SideloadConfig

Returns a new instance of SideloadConfig.



45
46
47
48
49
# File 'lib/graphiti/errors.rb', line 45

def initialize(name, parent_resource_class, message)
  @name = name
  @parent_resource_class = parent_resource_class
  @message = message
end

Instance Method Details

#messageObject



51
52
53
54
55
# File 'lib/graphiti/errors.rb', line 51

def message
  <<~MSG
    #{@parent_resource_class} sideload :#{@name} - #{@message}
  MSG
end