Module libbottles.exceptions
Expand source code
class NoConnection(Exception):
'''
Raised when there is no internet connection.
'''
def __init__(self):
self.message = f"Unable to establish an internet connection."
super().__init__()
Classes
class NoConnection
-
Raised when there is no internet connection.
Expand source code
class NoConnection(Exception): ''' Raised when there is no internet connection. ''' def __init__(self): self.message = f"Unable to establish an internet connection." super().__init__()
Ancestors
- builtins.Exception
- builtins.BaseException