Statistics
| Branch: | Tag: | Revision:

root / qa / qa_error.py @ 1a732a74

History | View | Annotate | Download (1 kB)

1 c68d1f43 Michael Hanselmann
#
2 c68d1f43 Michael Hanselmann
#
3 c68d1f43 Michael Hanselmann
4 cec9845c Michael Hanselmann
# Copyright (C) 2007 Google Inc.
5 cec9845c Michael Hanselmann
#
6 cec9845c Michael Hanselmann
# This program is free software; you can redistribute it and/or modify
7 cec9845c Michael Hanselmann
# it under the terms of the GNU General Public License as published by
8 cec9845c Michael Hanselmann
# the Free Software Foundation; either version 2 of the License, or
9 cec9845c Michael Hanselmann
# (at your option) any later version.
10 cec9845c Michael Hanselmann
#
11 cec9845c Michael Hanselmann
# This program is distributed in the hope that it will be useful, but
12 cec9845c Michael Hanselmann
# WITHOUT ANY WARRANTY; without even the implied warranty of
13 cec9845c Michael Hanselmann
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 cec9845c Michael Hanselmann
# General Public License for more details.
15 cec9845c Michael Hanselmann
#
16 cec9845c Michael Hanselmann
# You should have received a copy of the GNU General Public License
17 cec9845c Michael Hanselmann
# along with this program; if not, write to the Free Software
18 cec9845c Michael Hanselmann
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 cec9845c Michael Hanselmann
# 02110-1301, USA.
20 cec9845c Michael Hanselmann
21 cec9845c Michael Hanselmann
22 3582eef6 Iustin Pop
"""Error definitions for QA.
23 3582eef6 Iustin Pop

24 3582eef6 Iustin Pop
"""
25 3582eef6 Iustin Pop
26 21bf2e2e Andrea Spadaccini
27 cec9845c Michael Hanselmann
class Error(Exception):
28 cec9845c Michael Hanselmann
  """An error occurred during Q&A testing.
29 cec9845c Michael Hanselmann

30 cec9845c Michael Hanselmann
  """
31 cec9845c Michael Hanselmann
  pass
32 cec9845c Michael Hanselmann
33 cec9845c Michael Hanselmann
34 cec9845c Michael Hanselmann
class OutOfNodesError(Error):
35 cec9845c Michael Hanselmann
  """Out of nodes.
36 cec9845c Michael Hanselmann

37 cec9845c Michael Hanselmann
  """
38 cec9845c Michael Hanselmann
  pass
39 cec9845c Michael Hanselmann
40 cec9845c Michael Hanselmann
41 cec9845c Michael Hanselmann
class OutOfInstancesError(Error):
42 cec9845c Michael Hanselmann
  """Out of instances.
43 cec9845c Michael Hanselmann

44 cec9845c Michael Hanselmann
  """
45 cec9845c Michael Hanselmann
  pass
46 4b62db14 Michael Hanselmann
47 4b62db14 Michael Hanselmann
48 4b62db14 Michael Hanselmann
class UnusableNodeError(Error):
49 4b62db14 Michael Hanselmann
  """Unusable node.
50 4b62db14 Michael Hanselmann

51 4b62db14 Michael Hanselmann
  """
52 4b62db14 Michael Hanselmann
  pass