module GraphQL::Schema::CatchallMiddleware

def self.call(parent_type, parent_object, field_definition, field_args, query_context)

whose message is {MESSAGE}
Rescue any error and replace it with a {GraphQL::ExecutionError}
def self.call(parent_type, parent_object, field_definition, field_args, query_context)
  yield
rescue StandardError
  GraphQL::ExecutionError.new(MESSAGE)
end