I suggest you pass a message to the exception like "Requested OpenCL device is not found".
Also I suggest you use `CV_Error()` instead of `throw`.