Make ClientException stringify itself like RemoteException
This commit is contained in:
parent
dfe94c61e4
commit
9944719792
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,11 @@ from nntp.tiny.remote import (
|
||||||
)
|
)
|
||||||
|
|
||||||
class ClientException(Exception):
|
class ClientException(Exception):
|
||||||
pass
|
def __init__(self, response: Response):
|
||||||
|
self.response = response
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return str(self.response)
|
||||||
|
|
||||||
class ClientEOFException(ClientException):
|
class ClientEOFException(ClientException):
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue