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

Unified Diff: telemetry/telemetry/core/exceptions.py

Issue 2922593004: [telemetry] Provide some more specific exception classes (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | telemetry/telemetry/internal/actions/action_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/core/exceptions.py
diff --git a/telemetry/telemetry/core/exceptions.py b/telemetry/telemetry/core/exceptions.py
index 10382565710bc1e29394d35bba27ac4045c0dca1..1511d81fe4662a0fb2afe13d4a4e5ff8996ac93f 100644
--- a/telemetry/telemetry/core/exceptions.py
+++ b/telemetry/telemetry/core/exceptions.py
@@ -167,17 +167,25 @@ class ProfilingException(Error):
pass
+class StoryActionError(Error):
+ """Represents an error when trying to perform an action on a story."""
+
+
+class TracingException(Error):
+ """Represents an error that ocurred while collecting or flushing traces."""
+
+
class PathMissingError(Error):
- """ Represents an exception thrown when an expected path doesn't exist. """
+ """Represents an exception thrown when an expected path doesn't exist."""
class UnknownPackageError(Error):
- """ Represents an exception when encountering an unsupported Android APK. """
+ """Represents an exception when encountering an unsupported Android APK."""
class PackageDetectionError(Error):
- """ Represents an error when parsing an Android APK's package. """
+ """Represents an error when parsing an Android APK's package."""
class AndroidDeviceParsingError(Error):
- """Represents an error when parsing output from an android device"""
+ """Represents an error when parsing output from an android device."""
« no previous file with comments | « no previous file | telemetry/telemetry/internal/actions/action_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698