Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
NetworkConnectionError Class Reference
Inheritance diagram for NetworkConnectionError:
Collaboration diagram for NetworkConnectionError:

Public Member Functions

None __init__ (self, str error_msg, Optional[Response] response=None, Optional[Request] request=None)
 
str __str__ (self)
 

Data Fields

 response
 
 request
 
 error_msg
 

Detailed Description

HTTP connection error

Definition at line 294 of file exceptions.py.

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self,
str  error_msg,
Optional[Response]   response = None,
Optional[Request]   request = None 
)
Initialize NetworkConnectionError with  `request` and `response`
objects.

Definition at line 297 of file exceptions.py.

302 ) -> None:
303 """
304 Initialize NetworkConnectionError with `request` and `response`
305 objects.
306 """
307 self.response = response
308 self.request = request
309 self.error_msg = error_msg
310 if (
311 self.response is not None
312 and not self.request
313 and hasattr(response, "request")
314 ):
315 self.request = self.response.request
316 super().__init__(error_msg, response, request)
317
for i

Referenced by Protocol.__init_subclass__().

Here is the caller graph for this function:

Member Function Documentation

◆ __str__()

str __str__ (   self)

Definition at line 318 of file exceptions.py.

318 def __str__(self) -> str:
319 return str(self.error_msg)
320
321

Field Documentation

◆ error_msg

error_msg

Definition at line 309 of file exceptions.py.

◆ request

◆ response

response

Definition at line 307 of file exceptions.py.


The documentation for this class was generated from the following file: