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.
962 963 964 |
# File 'lib/graphiti/errors.rb', line 962 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
960 961 962 |
# File 'lib/graphiti/errors.rb', line 960 def errors @errors end |
Instance Method Details
#message ⇒ Object
966 967 968 969 970 971 972 |
# File 'lib/graphiti/errors.rb', line 966 def " There were one or more errors with your request:\n\n \#{errors.full_messages.join(\"\\n\")}\n MSG\nend\n" |