class GraphQL::Schema::Timeout::TimeoutError
This error is raised when a query exceeds max_seconds. Since it’s a child of GraphQL::ExecutionError, its message will be added to the response’s errors key.
To raise an error that will stop query resolution, use a custom block to take this error and raise a new one which doesn’t descend from GraphQL::ExecutionError, such as RuntimeError.
Public Class Methods
Source
# File lib/graphql/schema/timeout.rb, line 170 def initialize(field) super("Timeout on #{field.path}") end
Calls superclass method
GraphQL::ExecutionError::new