blob: 9d07448aa9f8c959eae84105a5cdb9519360b8ab [file] [log] [blame]
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import threading
class UnknownMessageTypeError(ValueError):
"""Indicates that a message with an unrecoganized type was received."""
class WorkerTimeoutError(RuntimeError):
"""Indicates that a factory worker timed out."""
def __init__(self):
super(WorkerTimeoutError, self).__init__(
'worker %d timed out' % threading.current_thread().ident)