Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Side by Side Diff: telemetry/telemetry/core/exceptions.py

Issue 3015633002: [Telemetry] Include debugging info when foreground tab is missing (Closed)
Patch Set: Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | telemetry/telemetry/internal/browser/browser.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import logging 4 import logging
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 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 super(BrowserGoneException, self).__init__(app, msg) 125 super(BrowserGoneException, self).__init__(app, msg)
126 126
127 127
128 class BrowserConnectionGoneException(BrowserGoneException): 128 class BrowserConnectionGoneException(BrowserGoneException):
129 """Represents a browser that still exists but cannot be reached.""" 129 """Represents a browser that still exists but cannot be reached."""
130 130
131 def __init__(self, app, msg='Browser exists but the connection is gone'): 131 def __init__(self, app, msg='Browser exists but the connection is gone'):
132 super(BrowserConnectionGoneException, self).__init__(app, msg) 132 super(BrowserConnectionGoneException, self).__init__(app, msg)
133 133
134 134
135 class TabMissingError(Error):
136 """Represents an error when an expected browser tab is not found."""
137
138
135 class ProcessGoneException(Error): 139 class ProcessGoneException(Error):
136 """Represents a process that no longer exists for an unknown reason.""" 140 """Represents a process that no longer exists for an unknown reason."""
137 141
138 142
139 class IntentionalException(Error): 143 class IntentionalException(Error):
140 """Represent an exception raised by a unittest which is not printed.""" 144 """Represent an exception raised by a unittest which is not printed."""
141 145
142 146
143 class InitializationError(Error): 147 class InitializationError(Error):
144 148
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 class UnknownPackageError(Error): 186 class UnknownPackageError(Error):
183 """Represents an exception when encountering an unsupported Android APK.""" 187 """Represents an exception when encountering an unsupported Android APK."""
184 188
185 189
186 class PackageDetectionError(Error): 190 class PackageDetectionError(Error):
187 """Represents an error when parsing an Android APK's package.""" 191 """Represents an error when parsing an Android APK's package."""
188 192
189 193
190 class AndroidDeviceParsingError(Error): 194 class AndroidDeviceParsingError(Error):
191 """Represents an error when parsing output from an android device.""" 195 """Represents an error when parsing output from an android device."""
OLDNEW
« no previous file with comments | « no previous file | telemetry/telemetry/internal/browser/browser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698