Files
mayan-edms/apps/converter/exceptions.py
Roberto Rosario 970cb74d35 PEP8 cleanups
2012-01-18 14:37:15 -04:00

36 lines
643 B
Python

class ConvertError(Exception):
"""
Base exception for all coverter app exceptions
"""
pass
class UnknownFileFormat(ConvertError):
"""
Raised when the converter backend can't understand a file
"""
pass
class IdentifyError(ConvertError):
"""
Raised by the graphcismagick and imagemagics identify program
"""
pass
class UnkownConvertError(ConvertError):
"""
Raised when an error is found but there is no disernible way to
identify the kind of error
"""
pass
class OfficeConversionError(ConvertError):
pass
class OfficeBackendError(OfficeConversionError):
pass