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

Unified Diff: telemetry/telemetry/internal/platform/tracing_controller_backend.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 | « telemetry/telemetry/internal/actions/action_runner.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/platform/tracing_controller_backend.py
diff --git a/telemetry/telemetry/internal/platform/tracing_controller_backend.py b/telemetry/telemetry/internal/platform/tracing_controller_backend.py
index 31365b074ae5536d7c1bbb5918c517d79ee93061..741f595fcf950b0390f1102f16c5b0b8da088be6 100644
--- a/telemetry/telemetry/internal/platform/tracing_controller_backend.py
+++ b/telemetry/telemetry/internal/platform/tracing_controller_backend.py
@@ -135,7 +135,7 @@ class TracingControllerBackend(object):
self._current_state = None
if raised_exception_messages:
- raise exceptions.Error(
+ raise exceptions.TracingException(
'Exceptions raised when trying to stop tracing:\n' +
'\n'.join(raised_exception_messages))
@@ -161,7 +161,7 @@ class TracingControllerBackend(object):
''.join(traceback.format_exception(*sys.exc_info())))
if raised_exception_messages:
- raise exceptions.Error(
+ raise exceptions.TracingException(
'Exceptions raised when trying to flush tracing:\n' +
'\n'.join(raised_exception_messages))
« no previous file with comments | « telemetry/telemetry/internal/actions/action_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698