Statistics
| Branch: | Tag: | Revision:

root / qa / qa_error.py @ 7910e7a5

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 cec9845c Michael Hanselmann
class Error(Exception):
23 cec9845c Michael Hanselmann
  """An error occurred during Q&A testing.
24 cec9845c Michael Hanselmann

25 cec9845c Michael Hanselmann
  """
26 cec9845c Michael Hanselmann
  pass
27 cec9845c Michael Hanselmann
28 cec9845c Michael Hanselmann
29 cec9845c Michael Hanselmann
class OutOfNodesError(Error):
30 cec9845c Michael Hanselmann
  """Out of nodes.
31 cec9845c Michael Hanselmann

32 cec9845c Michael Hanselmann
  """
33 cec9845c Michael Hanselmann
  pass
34 cec9845c Michael Hanselmann
35 cec9845c Michael Hanselmann
36 cec9845c Michael Hanselmann
class OutOfInstancesError(Error):
37 cec9845c Michael Hanselmann
  """Out of instances.
38 cec9845c Michael Hanselmann

39 cec9845c Michael Hanselmann
  """
40 cec9845c Michael Hanselmann
  pass
41 4b62db14 Michael Hanselmann
42 4b62db14 Michael Hanselmann
43 4b62db14 Michael Hanselmann
class UnusableNodeError(Error):
44 4b62db14 Michael Hanselmann
  """Unusable node.
45 4b62db14 Michael Hanselmann

46 4b62db14 Michael Hanselmann
  """
47 4b62db14 Michael Hanselmann
  pass