class DocumentInsertionError(Exception): """Exception raised when document insertion to database fails.""" class DocumentExtractionError(Exception): """Exception raised when document extraction from PDF fails."""