Exception: Graphiti::Errors::InvalidRequest

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

Direct Known Subclasses

ConflictRequest

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ InvalidRequest

Returns a new instance of InvalidRequest.



810
811
812
# File 'lib/graphiti/errors.rb', line 810

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



808
809
810
# File 'lib/graphiti/errors.rb', line 808

def errors
  @errors
end

Instance Method Details

#messageObject



814
815
816
817
818
819
820
# File 'lib/graphiti/errors.rb', line 814

def message
  <<-MSG
    There were one or more errors with your request:

    #{errors.full_messages.join("\n")}
  MSG
end