| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import sys | 5 import sys |
| 6 | 6 |
| 7 | 7 |
| 8 class Error(Exception): | 8 class Error(Exception): |
| 9 """Base class for Telemetry exceptions.""" | 9 """Base class for Telemetry exceptions.""" |
| 10 def __init__(self, msg=''): | 10 def __init__(self, msg=''): |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 | 91 |
| 92 class ProcessGoneException(Error): | 92 class ProcessGoneException(Error): |
| 93 """Represents a process that no longer exists for an unknown reason.""" | 93 """Represents a process that no longer exists for an unknown reason.""" |
| 94 | 94 |
| 95 | 95 |
| 96 class IntentionalException(Error): | 96 class IntentionalException(Error): |
| 97 """Represent an exception raised by a unittest which is not printed.""" | 97 """Represent an exception raised by a unittest which is not printed.""" |
| 98 | 98 |
| 99 | 99 |
| 100 class InitializationError(Error): |
| 101 def __init__(self, string): |
| 102 super(InitializationError, self).__init__(string) |
| 103 |
| 104 |
| 100 class LoginException(Error): | 105 class LoginException(Error): |
| 101 pass | 106 pass |
| 102 | 107 |
| 103 | 108 |
| 104 class EvaluateException(Error): | 109 class EvaluateException(Error): |
| 105 pass | 110 pass |
| 106 | 111 |
| 107 | 112 |
| 108 class ProfilingException(Error): | 113 class ProfilingException(Error): |
| 109 pass | 114 pass |
| 110 | 115 |
| 111 | 116 |
| 112 class PathMissingError(Error): | 117 class PathMissingError(Error): |
| 113 """ Represents an exception thrown when an expected path doesn't exist. """ | 118 """ Represents an exception thrown when an expected path doesn't exist. """ |
| 114 | 119 |
| 115 | 120 |
| 116 class UnknownPackageError(Error): | 121 class UnknownPackageError(Error): |
| 117 """ Represents an exception when encountering an unsupported Android APK. """ | 122 """ Represents an exception when encountering an unsupported Android APK. """ |
| 118 | 123 |
| 119 | 124 |
| 120 class PackageDetectionError(Error): | 125 class PackageDetectionError(Error): |
| 121 """ Represents an error when parsing an Android APK's package. """ | 126 """ Represents an error when parsing an Android APK's package. """ |
| 122 | 127 |
| 123 class AndroidDeviceParsingError(Error): | 128 class AndroidDeviceParsingError(Error): |
| 124 """Represents an error when parsing output from an android device""" | 129 """Represents an error when parsing output from an android device""" |
| OLD | NEW |