Exception: Graphiti::Errors::RemoteWrite

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

Instance Method Summary collapse

Constructor Details

#initialize(resource_class) ⇒ RemoteWrite

Returns a new instance of RemoteWrite.



63
64
65
# File 'lib/graphiti/errors.rb', line 63

def initialize(resource_class)
  @resource_class = resource_class
end

Instance Method Details

#messageObject



67
68
69
70
71
# File 'lib/graphiti/errors.rb', line 67

def message
  <<-MSG
    #{@resource_class}: Tried to perform write operation. Writes are not supported for remote resources - hit the endpoint directly.
  MSG
end