exceptions.py 1.42 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
#  engine
#
#  Playout Daemon for autoradio project
#
#
#  Copyright (C) 2017-2018 Gottfried Gaisbauer <gottfried.gaisbauer@servus.at>
#
#  This file is part of engine.
#
#  engine is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  any later version.
#
#  engine is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with engine. If not, see <http://www.gnu.org/licenses/>.
#
24

David Trattnig's avatar
David Trattnig committed
25
26
27
28


# Scheduler Exceptions

29
30
31
class NoProgrammeLoadedException(Exception):
    pass

32
33
class NoActiveScheduleException(Exception):
    pass
34

35

David Trattnig's avatar
David Trattnig committed
36
37
38
39
# Soundsystem and Mixer Exceptions

class LoadSourceException(Exception):
    pass
Gottfried Gaisbauer's avatar
Gottfried Gaisbauer committed
40

David Trattnig's avatar
David Trattnig committed
41
class InvalidChannelException(Exception):
42
43
    pass

44
class PlaylistException(Exception):
45
    pass
46

47
48
class NoActiveEntryException(Exception):
    pass
David Trattnig's avatar
David Trattnig committed
49
50
51
52


# Monitoring Exceptions

53
54
55
class EngineMalfunctionException(Exception):
    pass

56
57
58
class MailingException(Exception):
    pass

David Trattnig's avatar
David Trattnig committed
59
60
61
62
63
64

# Liquidsoap Execeptions

class LQConnectionError(Exception):
    pass

David Trattnig's avatar
David Trattnig committed
65
66
class LQStreamException(Exception):
    pass
David Trattnig's avatar
David Trattnig committed
67
68

class RedisConnectionException(Exception):
David Trattnig's avatar
David Trattnig committed
69
70
    pass