hgext/fastannotate/error.py
author Georges Racinet <gracinet@anybox.fr>
Thu, 21 Feb 2019 11:23:10 +0100
changeset 41771 cde37ed080c9
parent 39238 1ddb296e0dee
child 43076 2372284d9457
permissions -rw-r--r--
tests: fixed test too dependent on actual exception wording On one of the machines I use to run the tests prior to submission, the default Python is 2.7.5, with the following wording: must be encoded string without NULL bytes, not str This third form (and possible future ones) are motivation to use a wider catching regexp.

# Copyright 2016-present Facebook. All Rights Reserved.
#
# error: errors used in fastannotate
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import

class CorruptedFileError(Exception):
    pass

class CannotReuseError(Exception):
    """cannot reuse or update the cache incrementally"""