Skip to content

Instantly share code, notes, and snippets.

@Alexandro1112
Created January 26, 2023 08:13
Show Gist options
  • Save Alexandro1112/ab784e06dd472c0599d458588db4c96f to your computer and use it in GitHub Desktop.
Save Alexandro1112/ab784e06dd472c0599d458588db4c96f to your computer and use it in GitHub Desktop.
exceptions for pyTerminalproccesosx
"""
|---------------------|
|Individual exceptions for methods|
|---------------------|
"""
class ApplicationNameError(NameError):
"""
App with pointed out name not exist.
"""
class UseLinuxTerminal(OSError):
"""
Linux version already working.
"""
class ApplicationNotExist(SystemError):
"""
Application, which you point outed is not exist
"""
class UnsupportedFormat(FileExistsError):
"""
Method screenshot support only ['png', 'jpg', 'ico', 'gif', 'pict'] formats.
"""
class ConfirmationError(TypeError):
"""
If confirmation is [False].
"""
class InvalidExtension(NameError):
"""
No extension specified.
"""
class LinuxWhileNotSupport(NotImplementedError):
"""
TODO:
make linux version library in a future.
"""
class WifiNameConnectError(NameError):
"""
Password or SSID/Wi-fi name of Network is not right.
"""
class ValueBrightnessError(ValueError, TypeError):
"""
Value is not type [int].
"""
class WifiValueError(ValueError, BaseException):
"""
There is no wi-fi network in util "bunch keys".
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment