summaryrefslogtreecommitdiff
path: root/testrunner/errors.py
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-05 17:04:45 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-05 17:04:45 -0800
commit2b83cbdb14fcf0307e87b67d46ba17aab4c22a28 (patch)
tree2641da65fae26fae3fc2cfe06f5ef5d8b80120e8 /testrunner/errors.py
parentedd86fdaa9a52c1f33e27e6e67ffb27fb1521be4 (diff)
auto import from //depot/cupcake/@136654
Diffstat (limited to 'testrunner/errors.py')
-rwxr-xr-xtestrunner/errors.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/testrunner/errors.py b/testrunner/errors.py
new file mode 100755
index 000000000..6d606ecf5
--- /dev/null
+++ b/testrunner/errors.py
@@ -0,0 +1,40 @@
+#!/usr/bin/python2.4
+#
+#
+# Copyright 2008, The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""Defines common exception classes for this package."""
+
+
+class WaitForResponseTimedOutError(Exception):
+ """We sent a command and had to wait too long for response."""
+
+
+class DeviceUnresponsiveError(Exception):
+ """Device is unresponsive to command."""
+
+
+class InstrumentationError(Exception):
+ """Failed to run instrumentation."""
+
+
+class AbortError(Exception):
+ """Generic exception that indicates a fatal error has occurred and program
+ execution should be aborted."""
+
+
+class ParseError(Exception):
+ """Raised when xml data to parse has unrecognized format."""
+