comparison mercurial/error.py @ 21618:7568f5c1c801

bundle2: move exception classes into the error module Exceptions should have known their place.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 28 May 2014 15:31:05 -0700
parents 28d76afa1568
children 6eaa71b2a3cc
comparison
equal deleted inserted replaced
21617:0cfda08afd24 21618:7568f5c1c801
96 pass 96 pass
97 97
98 class PushRaced(RuntimeError): 98 class PushRaced(RuntimeError):
99 """An exception raised during unbundling that indicate a push race""" 99 """An exception raised during unbundling that indicate a push race"""
100 100
101 # bundle2 related errors
102 class BundleValueError(ValueError):
103 """error raised when bundle2 cannot be processed
104
105 Current main usecase is unsupported part types."""
106 pass
107
108 class ReadOnlyPartError(RuntimeError):
109 """error raised when code tries to alter a part being generated"""
110 pass
111