class GraphQL::StaticValidation::ValidationTimeoutError
Public Class Methods
(String message, ?path: Array[String | Integer]?, ?nodes: GraphQL::Language::Nodes::AbstractNode | Array[GraphQL::Language::Nodes::AbstractNode]) → void
Source
# File lib/graphql/static_validation/validation_timeout_error.rb, line 7 def initialize(message, path: nil, nodes: []) super(message, path: path, nodes: nodes) end
Calls superclass method
GraphQL::StaticValidation::Error::new
Public Instance Methods
# File lib/graphql/static_validation/validation_timeout_error.rb, line 24 def code "validationTimeout" end
# File lib/graphql/static_validation/validation_timeout_error.rb, line 13 def to_h extensions = { "code" => code } super.merge({ "extensions" => extensions }) end
A hash representation of this Message
Calls superclass method
GraphQL::StaticValidation::Error#to_h