23 lines
342 B
Python
23 lines
342 B
Python
from __future__ import unicode_literals
|
|
|
|
|
|
class OCRError(Exception):
|
|
"""
|
|
Raised by the OCR backend
|
|
"""
|
|
pass
|
|
|
|
|
|
class ParserError(Exception):
|
|
"""
|
|
Base exception for file parsers
|
|
"""
|
|
pass
|
|
|
|
|
|
class NoMIMETypeMatch(ParserError):
|
|
"""
|
|
There is no parser registered for the specified MIME type
|
|
"""
|
|
pass
|