1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 03:24:20 +00:00

📔 Slightly improve documentation

This commit is contained in:
Steffo 2022-03-05 03:12:08 +01:00
parent ac9a0de1b6
commit 6d1ae05563
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,5 @@
""" """
This modules contains the exceptions which can happen in bullets. This module contains the exceptions which can be raised by bullets.
""" """
from .. import exc from .. import exc

View file

@ -11,7 +11,14 @@ class Discard(BaseException):
def __init__(self, obj, message): def __init__(self, obj, message):
self.obj = obj self.obj = obj
"""
The discarded object.
"""
self.message = message self.message = message
"""
The reason for the discard.
"""
def __repr__(self): def __repr__(self):
return f"<{self.__class__.__qualname__}>" return f"<{self.__class__.__qualname__}>"