~dobey/ubuntuone-dev-tools/run-with-flakes

« back to all changes in this revision

Viewing changes to ubuntuone/devtools/errors.py

  • Committer: Tarmac
  • Author(s): Rodney Dawes
  • Date: 2012-08-02 19:32:13 UTC
  • mfrom: (76.1.6 runner-refactor)
  • Revision ID: tarmac-20120802193213-8ve057ze2uqzcj02
Refactor u1trial to allow multiple different test running back-ends
Implement Option handling API that is compatible with twisted trial
Remove logic from u1trial script
Fix a typo in the dbus test case
Ignore .pc directory for pep8 in run-tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2012 Canonical Ltd.
 
2
#
 
3
# This program is free software: you can redistribute it and/or modify it
 
4
# under the terms of the GNU General Public License version 3, as published
 
5
# by the Free Software Foundation.
 
6
#
 
7
# This program is distributed in the hope that it will be useful, but
 
8
# WITHOUT ANY WARRANTY; without even the implied warranties of
 
9
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
10
# PURPOSE.  See the GNU General Public License for more details.
 
11
#
 
12
# You should have received a copy of the GNU General Public License along
 
13
# with this program.  If not, see <http://www.gnu.org/licenses/>.
 
14
#
 
15
# In addition, as a special exception, the copyright holders give
 
16
# permission to link the code of portions of this program with the
 
17
# OpenSSL library under certain conditions as described in each
 
18
# individual source file, and distribute linked combinations
 
19
# including the two.
 
20
# You must obey the GNU General Public License in all respects
 
21
# for all of the code used other than OpenSSL.  If you modify
 
22
# file(s) with this exception, you may extend this exception to your
 
23
# version of the file(s), but you are not obligated to do so.  If you
 
24
# do not wish to do so, delete this exception statement from your
 
25
# version.  If you delete this exception statement from all source
 
26
# files in the program, then also delete it here.
 
27
"""Custom error types for Ubuntu One developer tools."""
 
28
 
 
29
 
 
30
class TestError(Exception):
 
31
    """An error occurred in attempting to load or start the tests."""
 
32
 
 
33
 
 
34
class UsageError(Exception):
 
35
    """An error occurred in parsing the command line arguments."""