Exception: Graphiti::Errors::InvalidRequest
- Defined in:
- lib/graphiti/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ InvalidRequest
constructor
A new instance of InvalidRequest.
- #message ⇒ Object
Constructor Details
#initialize(errors) ⇒ InvalidRequest
Returns a new instance of InvalidRequest.
779 780 781 |
# File 'lib/graphiti/errors.rb', line 779 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
777 778 779 |
# File 'lib/graphiti/errors.rb', line 777 def errors @errors end |
Instance Method Details
#message ⇒ Object
783 784 785 786 787 788 789 |
# File 'lib/graphiti/errors.rb', line 783 def <<-MSG There were one or more errors with your request: #{errors..join("\n")} MSG end |