mopidy / mopidy
1 2
class MopidyException(Exception):
2 2
    def __init__(self, message, *args, **kwargs):
3 2
        super().__init__(message, *args, **kwargs)
4 2
        self._message = message
5

6 2
    @property
7 1
    def message(self):
8
        """Reimplement message field that was deprecated in Python 2.6"""
9 2
        return self._message
10

11 2
    @message.setter  # noqa
12 1
    def message(self, message):
13 0
        self._message = message
14

15

16 2
class BackendError(MopidyException):
17 2
    pass
18

19

20 2
class CoreError(MopidyException):
21 2
    def __init__(self, message, errno=None):
22 0
        super().__init__(message, errno)
23 0
        self.errno = errno
24

25

26 2
class ExtensionError(MopidyException):
27 2
    pass
28

29

30 2
class FrontendError(MopidyException):
31 2
    pass
32

33

34 2
class MixerError(MopidyException):
35 2
    pass
36

37

38 2
class ScannerError(MopidyException):
39 2
    pass
40

41

42 2
class TracklistFull(CoreError):
43 2
    def __init__(self, message, errno=None):
44 0
        super().__init__(message, errno)
45 0
        self.errno = errno
46

47

48 2
class AudioException(MopidyException):
49 2
    pass
50

51

52 2
class ValidationError(ValueError):
53 2
    pass

Read our documentation on viewing source code .

Loading