PTFM-6179: adding failure reason and message to the dxpy exception