Exception: GraphQL::InvariantError

Inherits:
Error
  • Object
show all
Defined in:
lib/graphql.rb

Overview

This error is raised when GraphQL-Ruby encounters a situation that it thought would never happen. Please report this bug!

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ InvariantError

Returns a new instance of InvariantError.



27
28
29
30
31
32
# File 'lib/graphql.rb', line 27

def initialize(message)
  message += "

This is probably a bug in GraphQL-Ruby, please report this error on GitHub: https://github.com/rmosolgo/graphql-ruby/issues/new?template=bug_report.md"
  super(message)
end