Files
mayan-edms/apps/converter/exceptions.py

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