0.17.1
by Robert Collins
Starting point. Interface tests hooked up and failing. |
1 |
# groupcompress, a bzr plugin providing experimental compression logic
|
2 |
# Copyright (C) 2008 Canonical Limited.
|
|
3 |
#
|
|
4 |
# This program is free software; you can redistribute it and/or modify
|
|
5 |
# it under the terms of the GNU General Public License version 2 as published
|
|
6 |
# by the Free Software Foundation.
|
|
7 |
#
|
|
8 |
# This program is distributed in the hope that it will be useful,
|
|
9 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11 |
# GNU General Public License for more details.
|
|
12 |
#
|
|
13 |
# You should have received a copy of the GNU General Public License
|
|
14 |
# along with this program; if not, write to the Free Software
|
|
15 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
16 |
#
|
|
17 |
||
18 |
"""Error objects for compression functions."""
|
|
19 |
||
20 |
from bzrlib.errors import BzrError |
|
0.25.2
by John Arbash Meinel
First cut at meta-info as text form. |
21 |
|
22 |
||
23 |
class InvalidGroupCompressBlock(BzrError): |
|
24 |
"""Raised when a block has problems."""
|
|
25 |
||
26 |
_fmt = "Invalid Group Compress Block: %(msg)s" |
|
27 |
||
28 |
def __init__(self, msg): |
|
29 |
self.msg = msg |