xref: /aosp_15_r20/external/cronet/build/android/pylib/base/test_exception.py (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Copyright 2016 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5
6class TestException(Exception):
7  """Base class for exceptions thrown by the test runner."""
8
9
10class InvalidShardingSettings(TestException):
11  def __init__(self, shard_index, total_shards):
12    super().__init__(
13        'Invalid sharding settings. shard_index: %d total_shards: %d' %
14        (shard_index, total_shards))
15