If non-null, takePicture throws this instead of returning a file.
XCameraException? takePictureError;