# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2015-2018 by Exopy Authors, see AUTHORS for more details.
#
# Distributed under the terms of the BSD license.
#
# The full license is in the file LICENCE, distributed with this software.
# -----------------------------------------------------------------------------
"""Exceptions used to interact with looping tasks.
"""
[docs]class LoopException(BaseException):
"""Base exception used for control flows in tasks.
"""
pass
[docs]class BreakException(LoopException):
"""Exception used to signal a looping task it should break.
"""
pass
[docs]class ContinueException(LoopException):
"""Exception used to signal a looping task it should continue.
"""
pass