Exception: GraphQL::Query::VariableValidationError
- Inherits:
-
ExecutionError
- Object
- RuntimeError
- ExecutionError
- GraphQL::Query::VariableValidationError
- Defined in:
- lib/graphql/query.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from ExecutionError
Instance Method Summary collapse
-
#initialize(variable_ast, type, reason) ⇒ VariableValidationError
constructor
A new instance of VariableValidationError.
Methods inherited from ExecutionError
Constructor Details
#initialize(variable_ast, type, reason) ⇒ VariableValidationError
Returns a new instance of VariableValidationError.
10 11 12 13 14 |
# File 'lib/graphql/query.rb', line 10 def initialize(variable_ast, type, reason) msg = "Variable #{variable_ast.name} of type #{type} #{reason}" super(msg) self.ast_node = variable_ast end |