INNER CODE UNIT · Python

__init__

psevensas/DjangoChannelsGraphqlWs · channels_graphql_ws/client.py:318

    def __init__(self, response, message=None):
        """Exception constructor."""
        super().__init__(self)
        self.message = message
        self.response = response

    def __str__(self):
        """Nice string representation."""
        return f"{self.message or 'Error in GraphQL response'}: {self.response}!"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…