@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
@copyright: © 2017 by Frank Brehm, Berlin
-@summary: The module for e AnyUmpressFile class
+@summary: The module for a AnyUmpressFile class
"""
from __future__ import absolute_import
# Third party modules
import six
+__version__ = '0.1.0'
+
+
+# =============================================================================
+class BaseAnyUncompressError(Exception):
+ """Base class for all exceptions defined in this module."""
+ pass
+
+# =============================================================================
+class InvalidCompressionError(BaseAnyUncompressError, NotImplementedError):
+ """Special exception class for not implemented compression types."""
+
+ # -------------------------------------------------------------------------
+ def __init__(self, compress_type, filename=None):
+
+ self.compress_type = compress_type
+ self.filename = filename
+
+ # -------------------------------------------------------------------------
+ def __str__(self):
+
+ if self.filename:
+ msg = "Unimplemented compression type {t!r} on file {f!r}.".format(
+ t=self.compress_type, f=self.filename)
+ else:
+ msg = "Unimplemented compression type {!r}.".format(self.compress_type)
+ return msg
+
+
+# =============================================================================
+class AnyUmpressFile(object):
+
+ pass
+
+
# =============================================================================
-class InvalidCompressionError(NotImplementedError):
+if __name__ == "__main__":
pass
# =============================================================================
-class AnyUmpressFile(file):
+# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4