File: exceptions.py

package info (click to toggle)
python-mystrom 2.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 188 kB
  • sloc: python: 855; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""All exceptions for the myStrom Python bindings."""


class MyStromError(Exception):
    """General MyStromError exception occurred."""

    pass


class MyStromConnectionError(MyStromError):
    """When a connection error is encountered."""

    pass


class MyStromNotVersionTwoSwitch(MyStromError):
    """When version 2 function is not supported."""

    pass