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

Unified Diff: client/third_party/infra_libs/ts_mon/common/errors.py

Issue 2573343002: Roll infra_libs and its dependencies to 066f135 (Closed)
Patch Set: Created 4 years 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
Index: client/third_party/infra_libs/ts_mon/common/errors.py
diff --git a/client/third_party/infra_libs/ts_mon/common/errors.py b/client/third_party/infra_libs/ts_mon/common/errors.py
index 29f3cd1f71e21cae7bdf2271f844d6199d7b61a4..0784a579791600fad4a816389a870d0f9510f947 100644
--- a/client/third_party/infra_libs/ts_mon/common/errors.py
+++ b/client/third_party/infra_libs/ts_mon/common/errors.py
@@ -106,6 +106,17 @@ class MonitoringNoConfiguredTargetError(MonitoringError):
return 'Metric "%s" was sent with no Target configured.' % (self.metric)
+class MonitoringFailedToFlushAllMetricsError(MonitoringError):
+ """Raised when some error is encountered in flushing specific metrics."""
+
+ def __init__(self, error_count):
+ self.error_count = error_count
+
+ def __str__(self):
+ return ('Failed to flush %d metrics. See tracebacks above' %
+ (self.error_count))
+
+
class UnknownModificationTypeError(MonitoringError):
"""Raised when using a Modification with an unknown type value."""

Powered by Google App Engine
This is Rietveld 408576698