summaryrefslogtreecommitdiffstats
path: root/src/Gui/ABRTExceptions.py
blob: 30496384798aa26fde31b8036c8b6d45b1b42903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from abrt_utils import _

class IsRunning(Exception):
    def __init__(self):
        Exception.__init__(self)
        self.what = _("Another client is already running, trying to wake it.")
    def __str__(self):
        return self.what

class WrongData(Exception):
    def __init__(self):
        Exception.__init__(self)
        self.what = _("Got unexpected data from daemon (is the database properly updated?).")

    def __str__(self):
        return self.what
        
class ConfBackendInitError(Exception):
    def __init__(self, msg):
        Exception.__init__(self)
        self.what = msg
    
    def __str__(self):
        return self.what