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.
765 766 767 |
# File 'lib/graphiti/errors.rb', line 765 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
763 764 765 |
# File 'lib/graphiti/errors.rb', line 763 def errors @errors end |
Instance Method Details
#message ⇒ Object
769 770 771 772 773 774 775 |
# File 'lib/graphiti/errors.rb', line 769 def " There were one or more errors with your request:\n\n \#{errors.full_messages.join(\"\\n\")}\n MSG\nend\n" |