Sha256: 36230f8e875179f3438ccbee17c46939f7b8a70ab4db37914b9072497e87e62c

Contents?: true

Size: 320 Bytes

Versions: 242

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  class InvalidNameError < GraphQL::ExecutionError
    attr_reader :name, :valid_regex
    def initialize(name, valid_regex)
      @name = name
      @valid_regex = valid_regex
      super("Names must match #{@valid_regex.inspect} but '#{@name}' does not")
    end
  end
end

Version data entries

242 entries across 242 versions & 2 rubygems

Version Path
graphql-2.2.10 lib/graphql/invalid_name_error.rb
graphql-2.2.9 lib/graphql/invalid_name_error.rb
graphql-2.2.8 lib/graphql/invalid_name_error.rb
graphql-2.2.7 lib/graphql/invalid_name_error.rb
graphql-2.2.6 lib/graphql/invalid_name_error.rb
graphql-2.1.11 lib/graphql/invalid_name_error.rb
graphql-2.0.28 lib/graphql/invalid_name_error.rb
graphql-1.13.21 lib/graphql/invalid_name_error.rb
graphql-2.2.5 lib/graphql/invalid_name_error.rb
graphql-2.2.4 lib/graphql/invalid_name_error.rb
graphql-2.2.3 lib/graphql/invalid_name_error.rb
graphql-2.1.10 lib/graphql/invalid_name_error.rb
graphql-2.2.2 lib/graphql/invalid_name_error.rb
graphql-2.1.9 lib/graphql/invalid_name_error.rb
graphql-2.2.1 lib/graphql/invalid_name_error.rb
graphql-2.2.0 lib/graphql/invalid_name_error.rb
graphql-2.1.8 lib/graphql/invalid_name_error.rb
graphql-2.1.7 lib/graphql/invalid_name_error.rb
graphql-2.1.6 lib/graphql/invalid_name_error.rb
graphql-2.1.5 lib/graphql/invalid_name_error.rb