~noskcaj/ubuntu/saucy/sflphone/merge-1.2.3-2

« back to all changes in this revision

Viewing changes to tools/pysflphone/Errors.py

  • Committer: Package Import Robot
  • Author(s): Francois Marier
  • Date: 2012-02-18 21:47:09 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120218214709-6362d71gqdsdkrj5
Tags: 1.0.2-1
* New upstream release
  - remove logging patch (applied upstream)
  - update s390 patch since it was partially applied upstream
* Include the Evolution plugin as a separate binary package

* Fix compilation issues on SH4 (closes: #658987)
* Merge Ubuntu's binutils-gold linking fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2008 by the Free Software Foundation, Inc.
 
2
#
 
3
# This program is free software; you can redistribute it and/or
 
4
# modify it under the terms of the GNU General Public License
 
5
# as published by the Free Software Foundation; either version 2
 
6
# of the License, or (at your option) any later version.
 
7
#
 
8
# This program is distributed in the hope that it will be useful,
 
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
# GNU General Public License for more details.
 
12
#
 
13
# You should have received a copy of the GNU General Public License
 
14
# along with this program; if not, write to the Free Software
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
16
 
 
17
"""Our own Errors exceptions"""
 
18
 
 
19
class SflPhoneError(Exception):
 
20
    """Base class for all SflPhone exceptions."""
 
21
    def __init__(self, help=None):
 
22
        self.help=help
 
23
    def __str__(self):
 
24
        return repr(self.help)
 
25
 
 
26
 
 
27
class SPdbusError(SflPhoneError):
 
28
    """General error for dbus communication"""
 
29
 
 
30
class SPdaemonError(SflPhoneError):
 
31
    """General error for daemon communication"""
 
32
 
 
33
class SPserverError(SflPhoneError):
 
34
    """General error for server communication"""
 
35
 
 
36
class SPconfigurationError(SflPhoneError):
 
37
    """General error for configuration"""
 
38
 
 
39
class SPaccountError(SflPhoneError):
 
40
    """General error for account handling"""