Define class pointer for MongoCursorException