Exception: GraphQL::Schema::DuplicateNamesError
- Defined in:
- lib/graphql/schema.rb
Instance Attribute Summary collapse
-
#duplicated_name ⇒ Object
readonly
Returns the value of attribute duplicated_name.
Instance Method Summary collapse
-
#initialize(duplicated_name:, duplicated_definition_1:, duplicated_definition_2:) ⇒ DuplicateNamesError
constructor
A new instance of DuplicateNamesError.
Constructor Details
#initialize(duplicated_name:, duplicated_definition_1:, duplicated_definition_2:) ⇒ DuplicateNamesError
Returns a new instance of DuplicateNamesError.
78 79 80 81 82 83 |
# File 'lib/graphql/schema.rb', line 78 def initialize(duplicated_name:, duplicated_definition_1:, duplicated_definition_2:) @duplicated_name = duplicated_name super( "Found two visible definitions for `#{duplicated_name}`: #{duplicated_definition_1}, #{duplicated_definition_2}" ) end |
Instance Attribute Details
#duplicated_name ⇒ Object (readonly)
Returns the value of attribute duplicated_name.
77 78 79 |
# File 'lib/graphql/schema.rb', line 77 def duplicated_name @duplicated_name end |