| 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."""
|
|
|
|
|