The line works if you are getting an AxisCameraException.
The problem is with the cRIO not being able to contact the camera. Get your development computer onto the same network and try to ping it. Also, make sure that you've read
this file on how to configure your camera correctly (especially the part about the proper username/passwords)