Skip to content

[Question] Is there any documentation about error handling? #204

Closed
@felinto-dev

Description

@felinto-dev

Hello!

Is there any documentation about error handling?

        try:
            client.execute(query, variable_values=params)
        except:
            pass

I want to catch the error of when the GraphQL endpoint returns the error code 400 - 403, and NOT an error related to the incorrect schema, for example.

I would know what NameError I should assign to except block to be able to print error messages in a friendly way to the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: documentationAn issue or pull request for improving or updating the documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions