summaryrefslogtreecommitdiff
path: root/CompizError.py
blob: f5b4bbcc3f84ae2ff30663a7c2e16b2372384450 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# Copyright Eyemagnet Limited
# 
# This program 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 2 of the
# License, or (at your option) any later version.
# 
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# 
# Author: Kristian F. Erikson <kristian@erikson.dk>
#


class CompizError(Exception): pass
class CompizPluginNameErr(CompizError):
    def __str__(self):
        return 'Plugin name not found in list of availiable plugins.'
class CompizPluginOptionError(CompizError):
    def __str__(self):
        return 'Plugin option not found.'
class CompizPluginActionArgsError(CompizError):
    def __str__(self):
        return 'Compiz plugin action arguments incorrect or missing.'
class CompizPluginActionError(CompizError):
    def __str__(self):
        return 'Compiz plugin action incorrect.'
class CompizPluginTypeArgError(CompizError):
    def __str__(self):
        return 'One or more of the arguments given to call the plugin are of an incorrect type.'
class CompizPluginNotActiveError(CompizError):
    def __str__(self):
        return 'The plugin is not currently active.'
class CompizPluginWindowNotFoundError(CompizError):
    def __str__(self):
        return 'The window title specified could not be found.'