Exception: SimpleGraphqlClient::Errors::ParserError
- Inherits:
-
StandardError
- Object
- StandardError
- SimpleGraphqlClient::Errors::ParserError
- Defined in:
- lib/simple_graphql_client/errors/parser_error.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(error, response) ⇒ ParserError
constructor
A new instance of ParserError.
- #message ⇒ Object
Constructor Details
#initialize(error, response) ⇒ ParserError
Returns a new instance of ParserError.
8 9 10 11 12 |
# File 'lib/simple_graphql_client/errors/parser_error.rb', line 8 def initialize(error, response) @error = error @response = response super() end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
6 7 8 |
# File 'lib/simple_graphql_client/errors/parser_error.rb', line 6 def error @error end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/simple_graphql_client/errors/parser_error.rb', line 6 def response @response end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/simple_graphql_client/errors/parser_error.rb', line 14 def "Failed to parse response #{response.body[0..10]}... from #{response.request.inspect}." end |