Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"""
Define exceptions specific to pdf2image
"""
class PopplerNotInstalledError(Exception):
"""Happens when poppler is not installed"""
pass
class PDFInfoNotInstalledError(PopplerNotInstalledError):
"""Happens when pdfinfo is not installed"""
pass
class PDFPageCountError(Exception):
"""Happens when the pdfinfo was unable to retrieve the page count"""
pass
class PDFSyntaxError(Exception):
"""Syntax error was thrown during rendering"""
pass