Files
mayan-edms/apps/converter/exceptions.py
Roberto Rosario cd0b1577a7 Renamed the exception UnknownFormat to UnkownFileFormat and updated all
backends get_page_count method to raise it, having the api's get_page_count
function decide how to handle the exception
2011-08-05 03:24:01 -04:00

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