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.



15
16
17
18
19
20
# File 'lib/graphql.rb', line 15

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