is_complete = true; $attempt->save(); return; } catch (QueryException $exception){ throw new MalformedRequestException($exception->getMessage()); } } }