strawberry.exceptions.DuplicatedTypeName

Raised when the same type with different definition is reused inside a schema.

Constructor:

Signature:

def __init__(
self,
first_cls: Type | None,
second_cls: Type | None,
duplicated_type_name: str,
) -> None:
...

Parameters:

  1. first_cls:

    Type
    Type | None
  2. second_cls:

    Type
    Type | None
  3. duplicated_type_name:

    Type
    str

Attributes:

  1. first_cls:

  2. second_cls:

  3. message:

  4. rich_message:

  5. suggestion:

  6. exception_source:

    Type
    ExceptionSource | None