sapling/fastannotate/error.py
Jun Wu 833188e453 fastannotate: move exception classes to error.py
Summary: The newly added error.py will be used in other files.

Test Plan: A related test will be added later

Reviewers: #sourcecontrol, stash

Reviewed By: stash

Subscribers: ttung, stash, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3836304

Signature: t1:3836304:1473411906:ca110c8214d2b1a0f9ae29111d75baa54c072c19
2016-09-08 14:47:49 +01:00

14 lines
381 B
Python

# 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.
class CorruptedFileError(Exception):
pass
class CannotReuseError(Exception):
"""cannot reuse or update the cache incrementally"""
pass