404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.147.71.116: ~ $
"""
Exception Classes for the xdg package
"""

debug = False

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

class ValidationError(Error):
    def __init__(self, msg, file):
        self.msg = msg
        self.file = file
        Error.__init__(self, "ValidationError in file '%s': %s " % (file, msg))

class ParsingError(Error):
    def __init__(self, msg, file):
        self.msg = msg
        self.file = file
        Error.__init__(self, "ParsingError in file '%s', %s" % (file, msg))

class NoKeyError(Error):
    def __init__(self, key, group, file):
        Error.__init__(self, "No key '%s' in group %s of file %s" % (key, group, file))
        self.key = key
        self.group = group

class DuplicateKeyError(Error):
    def __init__(self, key, group, file):
        Error.__init__(self, "Duplicate key '%s' in group %s of file %s" % (key, group, file))
        self.key = key
        self.group = group

class NoGroupError(Error):
    def __init__(self, group, file):
        Error.__init__(self, "No group: %s in file %s" % (group, file))
        self.group = group

class DuplicateGroupError(Error):
    def __init__(self, group, file):
        Error.__init__(self, "Duplicate group: %s in file %s" % (group, file))
        self.group = group

class NoThemeError(Error):
    def __init__(self, theme):
        Error.__init__(self, "No such icon-theme: %s" % theme)
        self.theme = theme

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
BaseDirectory.py File 5.62 KB 0644
Config.py File 728 B 0644
DesktopEntry.py File 16.41 KB 0644
Exceptions.py File 1.49 KB 0644
IconTheme.py File 15.72 KB 0644
IniFile.py File 13.18 KB 0644
Locale.py File 2.11 KB 0644
Menu.py File 38.14 KB 0644
MenuEditor.py File 17.97 KB 0644
Mime.py File 15.64 KB 0644
RecentFiles.py File 5.99 KB 0644
__init__.py File 171 B 0644
util.py File 164 B 0644