Sha256: 36230f8e875179f3438ccbee17c46939f7b8a70ab4db37914b9072497e87e62c

Contents?: true

Size: 320 Bytes

Versions: 237

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

237 entries across 237 versions & 2 rubygems

Version Path
graphql-2.4.4 lib/graphql/invalid_name_error.rb
graphql-2.4.3 lib/graphql/invalid_name_error.rb
graphql-2.4.2 lib/graphql/invalid_name_error.rb
graphql-2.4.1 lib/graphql/invalid_name_error.rb
graphql-2.4.0 lib/graphql/invalid_name_error.rb
graphql-2.3.20 lib/graphql/invalid_name_error.rb
graphql-2.3.19 lib/graphql/invalid_name_error.rb
graphql-2.3.18 lib/graphql/invalid_name_error.rb
graphql-2.3.17 lib/graphql/invalid_name_error.rb
graphql-2.3.16 lib/graphql/invalid_name_error.rb
graphql-2.3.15 lib/graphql/invalid_name_error.rb
graphql-2.3.14 lib/graphql/invalid_name_error.rb
graphql-2.3.13 lib/graphql/invalid_name_error.rb
graphql-2.3.12 lib/graphql/invalid_name_error.rb
graphql-2.3.11 lib/graphql/invalid_name_error.rb
graphql-2.3.10 lib/graphql/invalid_name_error.rb
graphql-2.2.16 lib/graphql/invalid_name_error.rb
graphql-2.1.13 lib/graphql/invalid_name_error.rb
graphql-2.3.9 lib/graphql/invalid_name_error.rb
graphql-2.3.8 lib/graphql/invalid_name_error.rb