Files
mayan-edms/mayan/apps/converter/exceptions.py
2015-08-07 03:45:46 -04:00

36 lines
596 B
Python

from __future__ import unicode_literals
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 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 InvalidOfficeFormat(ConvertError):
pass
class PageCountError(ConvertError):
pass