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.



371
372
373
374
# File 'lib/graphiti/errors.rb', line 371

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

Instance Method Details

#messageObject



376
377
378
379
380
# File 'lib/graphiti/errors.rb', line 376

def message
  <<-MSG
    #{@resource.class.name}: passed filter with value #{@value.inspect}, and failed attempting to parse as JSON array.
  MSG
end