view hgext/fastannotate/error.py @ 41264:dfc73c803b77

fastannotate: adapt to buffer() going a way in Python 3 There's probably something more efficient I could do here, but I'm disinclined to spend much time on this at the moment. Differential Revision: https://phab.mercurial-scm.org/D5614
author Augie Fackler <augie@google.com>
date Wed, 16 Jan 2019 11:56:43 -0500
parents 1ddb296e0dee
children 2372284d9457
line wrap: on
line source

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