Exception: Graphiti::Errors::InvalidJSONArray

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

Instance Method Summary collapse

Constructor Details

#initialize(resource, value) ⇒ InvalidJSONArray

Returns a new instance of InvalidJSONArray.



390
391
392
393
# File 'lib/graphiti/errors.rb', line 390

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

Instance Method Details

#messageObject



395
396
397
398
399
# File 'lib/graphiti/errors.rb', line 395

def message
  "    \#{@resource.class.name}: passed filter with value \#{@value.inspect}, and failed attempting to parse as JSON array.\n  MSG\nend\n"