backends get_page_count method to raise it, having the api's get_page_count function decide how to handle the exception
32 lines
583 B
Python
32 lines
583 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
|