Sha256: 00dc61bbb3940685aed3fd1ce68fb134cd6b8be34969e74333d55073ecbce440

Contents?: true

Size: 581 Bytes

Versions: 27

Compression:

Stored size: 581 Bytes

Contents

# frozen_string_literal: true

module GraphQL
  class Schema
    class Member
      # Set up a type-specific error to make debugging & bug tracker integration better
      module HasUnresolvedTypeError
        private
        def add_unresolved_type_error(child_class)
          if child_class.name # Don't set this for anonymous classes
            child_class.const_set(:UnresolvedTypeError, Class.new(GraphQL::UnresolvedTypeError))
          else
            child_class.const_set(:UnresolvedTypeError, UnresolvedTypeError)
          end
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
graphql-2.3.22 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.3.21 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.13 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.12 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.11 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.10 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.9 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.8 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.7 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.6 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.5 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.4 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.3 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.2 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.1 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.4.0 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.3.20 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.3.19 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.3.18 lib/graphql/schema/member/has_unresolved_type_error.rb
graphql-2.3.17 lib/graphql/schema/member/has_unresolved_type_error.rb